Code

Updated environment printer selection.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Feb 2008 12:44:26 +0000 (12:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Feb 2008 12:44:26 +0000 (12:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9070 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/personal/environment/class_selectPrinterDialog.inc

index b1ebc49602c8e82bfab3c3041e95d12a5dc7fb95..648a8b9d85582bc010dda48d8098e64f8ad23967 100644 (file)
@@ -84,11 +84,13 @@ class selectPrinterDialog extends plugin
       $this->regex=preg_replace("/\*\*/","*",$this->regex);
     }
 
+    $printer_list = $this->getPrinter(); 
+
     $smarty->assign("regexPrinter"    ,$this->regex);
     $smarty->assign("deplistPrinter"  ,$this->deplist);
     $smarty->assign("depselectPrinter",$this->depselect);
-    $smarty->assign("gotoPrinters",$this->getPrinter());
-    $smarty->assign("gotoPrinterKeys",array_flip($this->getPrinter()));
+    $smarty->assign("gotoPrinters",$printer_list);
+    $smarty->assign("gotoPrinterKeys",array_flip($printer_list));
     $smarty->assign("apply", apply_filter());
     $smarty->assign("alphabet", generate_alphabet());
     $smarty->assign("subtrees", $this->subtreesearch?"checked":"");
@@ -135,7 +137,7 @@ class selectPrinterDialog extends plugin
       $res    = get_list($filter,$module,$base,$attrs, GL_SIZELIMIT | GL_SUBSEARCH);
     } else {
       $base= get_ou('printerou').$base;
-      $res    = get_list($filter,$module,$base,$attrs, GL_SIZELIMIT);
+      $res    = get_list($filter,$module,$base,$attrs, GL_SIZELIMIT );
     }
 
     foreach($res as $printer)  {