Skip to content

Commit

Permalink
Merge pull request #2 from boboldehampsink/fix-quoting
Browse files Browse the repository at this point in the history
Added proper query quoting
  • Loading branch information
Mosnar authored Nov 30, 2018
2 parents c7f1c72 + 717b637 commit 8b79a29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/BulkEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public function getFieldLayoutsForElementIds($elementIds)
->distinct(true)
->limit(null)
->from('{{%fieldlayouts}} fieldlayouts')
->leftJoin('{{%elements}} elements', 'elements.fieldLayoutId = fieldlayouts.id')
->where(['IN', 'elements.id', $elementIds])
->leftJoin('{{%elements}} elements', '[[elements.fieldLayoutId]] = [[fieldlayouts.id]]')
->where(['IN', '[[elements.id]]', $elementIds])
->all();

$layoutsModels = [];
Expand Down

0 comments on commit 8b79a29

Please sign in to comment.