Skip to content

Commit d5798f9

Browse files
authored
Fix bug in term queries (#438)
1 parent f03ac50 commit d5798f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entries/EntryQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private function getKeysForTaxonomyWhereBasic($where)
237237
return app('statamic.eloquent.entries.model')::query()
238238
->select(['id'])
239239
->whereIn('collection', $taxonomy->collections()->map->handle()->all())
240-
->whereJsonContains($this->column($taxonomy->handle()), $term)
240+
->whereJsonContains($this->column($taxonomy->handle()), $slug)
241241
->get()
242242
->pluck('id');
243243
}

0 commit comments

Comments
 (0)