From ea944d0f4c122719c47b7387f1d788b1fbe8aadc Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 2 Jul 2008 05:32:52 +0000 Subject: [PATCH] Updated FAIprofile. -Fixed search filter and alphabet usage. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11500 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; } -- 2.30.2