Skip to content

Commit

Permalink
Merge pull request #1 from qbasic16/master
Browse files Browse the repository at this point in the history
Fix missing alias name for prefixed tables
  • Loading branch information
engram-design authored Jul 16, 2018
2 parents 6b713ff + fa29ad4 commit d58d507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/db/NodeQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function handle($value)
protected function beforePrepare(): bool
{
$this->joinElementTable('navigation_nodes');
$this->subQuery->innerJoin('{{%navigation_navs}}', '[[navigation_nodes.navId]] = [[navigation_navs.id]]');
$this->subQuery->innerJoin('{{%navigation_navs}} navigation_navs', '[[navigation_nodes.navId]] = [[navigation_navs.id]]');

$this->query->select([
'navigation_nodes.*',
Expand Down

0 comments on commit d58d507

Please sign in to comment.