We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51dc7cf commit d3dcfb7Copy full SHA for d3dcfb7
1 file changed
src/Controllers/TicketsController.php
@@ -118,9 +118,11 @@ public function data($ticketList = 'active')
118
}
119
120
if (isset($search_fields['tags'])){
121
- $collection->whereHas('tags', function($query) use($search_fields){
122
- $query->whereIn('id', $search_fields['tags']);
123
- });
+ foreach ($search_fields['tags'] as $tag_id){
+ $collection->whereHas('tags', function($q1) use($tag_id){
+ $q1->where('id', $tag_id);
124
+ });
125
+ }
126
127
128
if (isset($search_fields['comments'])){
0 commit comments