Merge pull request #18413 from erikvanberkum/develop

Fix: MO status selector draft showing all values instead of showing o…
This commit is contained in:
Laurent Destailleur 2021-08-17 01:11:00 +02:00 committed by GitHub
commit 6ff10cc20a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ foreach ($search as $key => $val) {
}
$mode_search = (($object->isInt($object->fields[$key]) || $object->isFloat($object->fields[$key])) ? 1 : 0);
if ((strpos($object->fields[$key]['type'], 'integer:') === 0) || (strpos($object->fields[$key]['type'], 'sellist:') === 0) || !empty($object->fields[$key]['arrayofkeyval'])) {
if ($search[$key] == '-1' || $search[$key] === '0') {
if ($search[$key] == '-1') {
$search[$key] = '';
}
$mode_search = 2;