Skip to content

Commit

Permalink
Add table name to block type ID query (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttempleton committed Dec 9, 2018
1 parent 0954e0c commit c8a27f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/elements/db/BlockQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ public function type($value)
else if ($value !== null)
{
$this->typeId = (new Query())
->select(['id'])
->from(['{{%neoblocktypes}}'])
->where(Db::parseParam('handle', $value))
->select(['neoblocktypes.id'])
->from(['{{%neoblocktypes}} neoblocktypes'])
->where(Db::parseParam('neoblocktypes.handle', $value))
->column();
}
else
Expand Down

0 comments on commit c8a27f6

Please sign in to comment.