Permalink
Browse files

Filters: Support Lookup By Name

  • Loading branch information...
protich committed Oct 24, 2016
1 parent f67c463 commit ef9b743c92e67d0f50246a5c577329759f0ed5d2
Showing with 4 additions and 0 deletions.
  1. +4 −0 include/class.filter.php
View
@@ -383,6 +383,10 @@ function getIdByName($name) {
}
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 comments on commit ef9b743

Please sign in to comment.