summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9fa291d)
raw | patch | inline | side by side (parent: 9fa291d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 16 Oct 2008 09:04:32 +0000 (09:04 +0000) | ||
committer | cajus <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 | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_selectUserToPrinterDialog.inc b/gosa-plugins/goto/admin/systems/goto/class_selectUserToPrinterDialog.inc
index c2bc48f114241f759a6e455e2646761d189afab9..333fab3a7150b4f25b300e4a1eb3bbcfd7e9393d 100644 (file)
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
/* Fill templating stuff */
$smarty= get_smarty();
}
-
$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'));
function save()
{
$a_return['type']=$this->type;
-
+
foreach($_POST['gotoPrinter'] as $name){
$data = $this->getPrinter(true);
$a_return[$name]= $data[$name];