We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce4155b commit 019e98eCopy full SHA for 019e98e
1 file changed
src/elements/db/TagQuery.php
@@ -23,6 +23,15 @@ class TagQuery extends \craft\elements\db\TagQuery
23
24
protected function afterPrepare (): bool
25
{
26
+ // due to the introduction of type filtering in element queries (see:https://github.com/craftcms/cms/discussions/9806)
27
+ // we have to make sure that the query is filtering based on 'craft\elements\Tag' and not 'ether\tagManager\elements\Tag'
28
+ for($i = 0; $i <= count($this->subQuery->where); $i++) {
29
+ if( !empty($this->subQuery->where[$i]['elements.type']) ) {
30
+ $this->subQuery->where[$i]['elements.type'] = 'craft\elements\Tag';
31
+ break;
32
+ }
33
34
+
35
if (Craft::$app->getDb()->getDriverName() === 'mysql')
36
return parent::afterPrepare();
37
0 commit comments