Skip to content

Commit

Permalink
Fix an error referring to old content table
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Mar 26, 2024
1 parent 04aee0d commit 806aa6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/db/ItemQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected function beforePrepare(): bool
]);

// Join the linked-to element's content
$this->subQuery->innerJoin('{{%content}} element_content', '[[wishlist_items.elementId]] = [[element_content.elementId]] AND [[wishlist_items.elementSiteId]] = [[element_content.siteId]]');
$this->subQuery->innerJoin('{{%elements_sites}} element_content', '[[wishlist_items.elementId]] = [[element_content.elementId]] AND [[wishlist_items.elementSiteId]] = [[element_content.siteId]]');
$this->subQuery->addSelect('element_content.title AS elementTitle');

if ($this->id) {
Expand Down

0 comments on commit 806aa6b

Please sign in to comment.