From b076653a1a57ecbd842643afa4fe9ad5535a70c0 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 16 Oct 2008 09:04:32 +0000 Subject: [PATCH] Fixed user/group assignement dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12714 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/class_selectUserToPrinterDialog.inc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_selectUserToPrinterDialog.inc b/gosa-plugins/goto/admin/systems/goto/class_selectUserToPrinterDialog.inc index c2bc48f11..333fab3a7 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_selectUserToPrinterDialog.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_selectUserToPrinterDialog.inc @@ -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]; -- 2.30.2