1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

Admin-UI: Added "Is Empty" option to type=number when filter is true.

This commit is contained in:
Cameron
2018-03-05 17:15:49 -08:00
parent 48b3318ecb
commit 1494c18660
2 changed files with 15 additions and 5 deletions

View File

@@ -4058,6 +4058,7 @@ class e_admin_controller_ui extends e_admin_controller
{
$searchQry[] = $this->fields[$filterField]['__tableField']." = '' ";
}
else
{
@@ -7077,6 +7078,14 @@ class e_admin_form_ui extends e_form
break;
case 'number';
if($type === 'filter')
{
$option[$key.'___ISEMPTY_'] = LAN_UI_FILTER_IS_EMPTY;
}
break;
case 'bool':
case 'boolean': //TODO modify description based on $val['parm]
if(vartrue($parms['reverse'])) // reverse true/false values;