From: hickert Date: Wed, 26 Apr 2006 12:20:59 +0000 (+0000) Subject: Printer are multiple lists, you can delete multiple & add multiple X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7a89f96ccd3464c14508a6557e222b24cc00fd13;p=gosa.git Printer are multiple lists, you can delete multiple & add multiple git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3121 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 3e436a886..562b0278f 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -630,8 +630,12 @@ class environment extends plugin $this->dialog->save_object(); $tmp = $this->dialog->save(); $tmp2= $this->dialog->getPrinter(true); - $this->gotoPrinter[$tmp]=$tmp2[$tmp]; - $this->gotoPrinter[$tmp]['mode']="user"; + + foreach($tmp as $pname){ + $this->gotoPrinter[$pname]=$tmp2[$pname]; + $this->gotoPrinter[$pname]['mode']="user"; + } + $this->is_dialog=false; unset($this->dialog); $this->dialog =NULL; @@ -640,7 +644,9 @@ class environment extends plugin if((isset($_POST['gotoPrinterDel']))&&(isset($_POST['gotoPrinterSel']))&&(!empty($_POST['gotoPrinterSel']))){ $printer = $_POST['gotoPrinterSel']; - unset($this->gotoPrinter[$printer]); + foreach($printer as $pname){ + unset($this->gotoPrinter[$pname]); + } } if((isset($_POST['gotoPrinterEdit']))&&(isset($_POST['gotoPrinterSel']))&&(!empty($_POST['gotoPrinterSel']))){ diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl index 8adafd25d..4877177b6 100644 --- a/plugins/personal/environment/environment.tpl +++ b/plugins/personal/environment/environment.tpl @@ -174,7 +174,7 @@
- {html_options values=$gotoPrinterKeys output=$gotoPrinter} diff --git a/plugins/personal/environment/selectPrinterDialog.tpl b/plugins/personal/environment/selectPrinterDialog.tpl index 197cf2f1d..d30845c97 100644 --- a/plugins/personal/environment/selectPrinterDialog.tpl +++ b/plugins/personal/environment/selectPrinterDialog.tpl @@ -12,7 +12,7 @@

- {html_options values=$gotoPrinterKeys output=$gotoPrinters}