summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ad7d1d)
raw | patch | inline | side by side (parent: 5ad7d1d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Jul 2008 05:32:52 +0000 (05:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Jul 2008 05:32:52 +0000 (05:32 +0000) |
-Fixed search filter and alphabet usage.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11500 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11500 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc b/gosa-plugins/fai/admin/fai/class_faiProfileEntry.inc
index 4b9ff186872b5126ffe819b633f65e7874ff3bd3..d057920a6a5ae43008652b2d277e2b8fec1c3898 100644 (file)
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
/* Fill templating stuff */
$smarty = get_smarty();
$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){
$fi = str_replace("*",".*",$SUBfaifilter['Sregex']);
$abort = true;
- if(!preg_match("/".$fi."/",$usedClass)){
+ if(!preg_match("/^".$fi."/i",$usedClass)){
$abort = false;
continue;
}