From: hickert Date: Wed, 2 Jul 2008 05:32:52 +0000 (+0000) Subject: Updated FAIprofile. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ea944d0f4c122719c47b7387f1d788b1fbe8aadc;p=gosa.git Updated FAIprofile. -Fixed search filter and alphabet usage. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11500 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc b/gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc index 4b9ff1868..d057920a6 100644 --- a/gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc @@ -88,8 +88,8 @@ class faiProfileEntry extends plugin function execute() { - /* Call parent execute */ - plugin::execute(); + /* Call parent execute */ + plugin::execute(); /* Fill templating stuff */ $smarty = get_smarty(); @@ -97,6 +97,11 @@ class faiProfileEntry extends plugin $SUBfaifilter = session::get('SUBfaifilter'); + /* Get alphabet selection */ + if(isset($_GET['search'])){ + $SUBfaifilter['Sregex'] = strtolower($_GET['search'])."*"; + } + /* If someone used the apply button, update searchfilter */ if(isset($_POST['Sregex'])){ foreach($SUBfaifilter as $key => $val){ @@ -184,7 +189,7 @@ class faiProfileEntry extends plugin $fi = str_replace("*",".*",$SUBfaifilter['Sregex']); $abort = true; - if(!preg_match("/".$fi."/",$usedClass)){ + if(!preg_match("/^".$fi."/i",$usedClass)){ $abort = false; continue; }