mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-12 23:23:49 +08:00
Add Feature Query List View Filter
Now you can use legacy query filter in list view pages
This commit is contained in:
parent
a76dfef14f
commit
7cbf033208
19 changed files with 843 additions and 35 deletions
|
@ -50,6 +50,21 @@ class DefaultFilterMapper implements FilterMapperInterface
|
|||
}
|
||||
|
||||
$legacyValue = $values;
|
||||
|
||||
$mapEmptyString = false;
|
||||
foreach ($legacyValue as $legacyValueKey => $legacyValueValue){
|
||||
switch ($legacyValueValue) {
|
||||
case "__SuiteCRMEmptyString__":
|
||||
$mapEmptyString = true;
|
||||
$legacyValue[$legacyValueKey] = '';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($mapEmptyString){
|
||||
return $legacyValue;
|
||||
}
|
||||
|
||||
if (count($values) === 1) {
|
||||
$legacyValue = $values[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue