Filter/Fixup

* only criteria should be affected by the match any/none selector
 * multi-selects are never null and shouldn't be tested as such.
This commit is contained in:
Sarjuuk 2026-01-13 21:38:53 +01:00
parent a5129b46b2
commit b4f40b4264
3 changed files with 15 additions and 8 deletions

View file

@ -2130,14 +2130,14 @@ class ItemListFilter extends Filter
}
// quality [list]
if ($_v['qu'] !== null)
if ($_v['qu'])
$parts[] = ['quality', $_v['qu']];
// type
if ($_v['ty'] !== null)
// type [list]
if ($_v['ty'])
$parts[] = ['subclass', $_v['ty']];
// slot
// slot [list]
if ($_v['sl'])
$parts[] = ['slot', $_v['sl']];

View file

@ -549,7 +549,7 @@ class QuestListFilter extends Filter
}
// questInfoId [list]
if ($_v['ty'] !== null)
if ($_v['ty'])
$parts[] = ['questInfoId', $_v['ty']];
return $parts;