mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Admin-UI: Added "Is Empty" option to type=number when filter is true.
This commit is contained in:
@@ -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;
|
||||
|
@@ -487,11 +487,6 @@ define("LAN_UI_FILTER_PAST_WEEK", "Past Week");
|
||||
define("LAN_UI_FILTER_PAST_MONTH", "Past Month");
|
||||
define("LAN_UI_FILTER_PAST_YEAR", "Past Year");
|
||||
|
||||
define("LAN_UI_FILTER_NEXT_HOUR", "Next Hour");
|
||||
define("LAN_UI_FILTER_NEXT_24_HOURS", "Next 24 hours");
|
||||
define("LAN_UI_FILTER_NEXT_WEEK", "Next Week");
|
||||
define("LAN_UI_FILTER_NEXT_MONTH", "Next Month");
|
||||
define("LAN_UI_FILTER_NEXT_YEAR", "Next Year");
|
||||
|
||||
define("LAN_USER_MANAGEALL", "Manage all User, Userclass and Extended User-Field settings");
|
||||
define("LAN_USER_LIST", "User List");
|
||||
@@ -550,3 +545,9 @@ define("LAN_UI_VIEW_GRID_LABEL", "Grid view");
|
||||
define("LAN_UI_VIEW_LIST_LABEL", "List view");
|
||||
define("LAN_CHECKING_FOR_UPDATES", "Checking for updates");
|
||||
|
||||
define("LAN_UI_FILTER_NEXT_HOUR", "Next Hour");
|
||||
define("LAN_UI_FILTER_NEXT_24_HOURS", "Next 24 hours");
|
||||
define("LAN_UI_FILTER_NEXT_WEEK", "Next Week");
|
||||
define("LAN_UI_FILTER_NEXT_MONTH", "Next Month");
|
||||
define("LAN_UI_FILTER_NEXT_YEAR", "Next Year");
|
||||
define("LAN_UI_FILTER_IS_EMPTY", "Is Empty");
|
||||
|
Reference in New Issue
Block a user