From 2fad372fadd10bf7636516af03bcac2e3db0c81f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Jan 2010 12:46:09 +0000 Subject: [PATCH] Updated printer selection in evironment tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15369 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/personal/environment/class_environment.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/personal/environment/class_environment.inc b/gosa-plugins/goto/personal/environment/class_environment.inc index b7a319816..b87b39071 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -878,12 +878,12 @@ class environment extends plugin $this->is_dialog=true; } - if(isset($_POST['selectPrinter_cancel']) && $this->dialog instanceOf printerSelect){ + if(isset($_POST['printerSelect_cancel']) && $this->dialog instanceOf printerSelect){ $this->is_dialog=false; $this->dialog=FALSE; } - if(isset($_POST['selectPrinter_save']) && $this->dialog instanceOf printerSelect){ + if(isset($_POST['printerSelect_save']) && $this->dialog instanceOf printerSelect){ $res = $this->dialog->save(); foreach($res as $printer){ @@ -930,6 +930,15 @@ class environment extends plugin $this->dialog =FALSE; } + // Display printer selection dialog + if($this->dialog instanceOf printerSelect){ + + // Build up blocklist + session::set('filterBlacklist',array('cn' => array_keys($this->gotoPrinter))); + return($this->dialog->execute()); + } + + if((isset($_POST['gotoPrinterDel']))&&(isset($_POST['gotoPrinterSel']))&&(!empty($_POST['gotoPrinterSel']))){ $printer = $_POST['gotoPrinterSel']; foreach($printer as $pname){ -- 2.30.2