Skip to content
Snippets Groups Projects
Commit ef9b743c authored by Peter Rotich's avatar Peter Rotich
Browse files

Filters: Support Lookup By Name

parent f67c4637
Branches
Tags
No related merge requests found
......@@ -383,6 +383,10 @@ class Filter {
}
function lookup($id) {
if ($id && !is_numeric($id))
$id = self::getIdByName($id);
return ($id && is_numeric($id) && ($f= new Filter($id)) && $f->getId()==$id)?$f:null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment