update filter conditions
This commit is contained in:
parent
e9df3f9e0a
commit
fd9f4d0444
@ -103,7 +103,9 @@ class ItemsCollection
|
||||
return $this->contains($val['_id'], $query)
|
||||
|| $this->contains($val['_name'], $query)
|
||||
|| $this->contains($val['_parent'], $query)
|
||||
|| (($this->locales[$locale][$key]??false) ? ($this->contains($this->locales[$locale][$key]['Name'], $query) || $this->contains($this->locales[$locale][$key]['ShortName'], $query)) : false);
|
||||
|| (($this->locales[$locale][$key] ?? false)
|
||||
&& ($this->contains($this->locales[$locale][$key]['Name'], $query) || $this->contains($this->locales[$locale][$key]['ShortName'], $query))
|
||||
);
|
||||
})->map(function ($item) use ($locale) {
|
||||
return [
|
||||
'_id' => $item['_id'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user