1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Fixes #4009 . Enhanced admin-ui to support custom filter handlers on string searches (not just drop-drop filters as was already the case)

This commit is contained in:
Cameron
2019-11-05 08:54:16 -08:00
parent e041e57587
commit 762844037f
2 changed files with 31 additions and 2 deletions

View File

@@ -141,6 +141,17 @@ class banlist_ui extends e_admin_ui
$this->fields['banlist_ip']['title']= BANLAN_5;
}
//
/**
* Custom filter for banlist_ip filter search.
* @param string $srch
*/
function handleListBanlistIpFilter($srch)
{
return "banlist_ip = '".e107::getIPHandler()->ipEncode($srch)."' OR banlist_ip = '".$srch."'";
}
// optional
public function init()