Code

Fixed user/group assignement dialog
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Oct 2008 09:04:32 +0000 (09:04 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Oct 2008 09:04:32 +0000 (09:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12714 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_selectUserToPrinterDialog.inc

index c2bc48f114241f759a6e455e2646761d189afab9..333fab3a7150b4f25b300e4a1eb3bbcfd7e9393d 100644 (file)
@@ -59,8 +59,8 @@ class selectUserToPrinterDialog extends plugin
 
   function execute()
   {
-       /* Call parent execute */
-       plugin::execute();
+    /* Call parent execute */
+    plugin::execute();
 
     /* Fill templating stuff */
     $smarty= get_smarty();
@@ -110,14 +110,13 @@ class selectUserToPrinterDialog extends plugin
     }
 
 
-
     $tmp_printers= $this->getPrinter();
     natcasesort($tmp_printers);
     $smarty->assign("regexPrinter"        , $this->regex);
     $smarty->assign("deplistPrinter"      , $deps);;//deplist);
     $smarty->assign("depselectPrinter"    , $this->depselect);
-    $smarty->assign("gotoPrinters"        , $tmp_printers);
-    $smarty->assign("gotoPrinterKeys"     , array_flip($tmp_printers));
+    $smarty->assign("gotoPrinters"        , array_values($tmp_printers));
+    $smarty->assign("gotoPrinterKeys"     , array_keys($tmp_printers));
     $smarty->assign("apply"               , apply_filter());
     $smarty->assign("alphabet"            , generate_alphabet());
     $smarty->assign("search_image"        , get_template_path('images/lists/search.png'));
@@ -145,7 +144,7 @@ class selectUserToPrinterDialog extends plugin
   function save()
   {
     $a_return['type']=$this->type;
-    
+
     foreach($_POST['gotoPrinter'] as $name){
       $data = $this->getPrinter(true);
       $a_return[$name]= $data[$name];