From: hickert Date: Wed, 18 Jan 2006 12:12:59 +0000 (+0000) Subject: Fixed flag handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a14adadfba9b0509e1638590ef39c3dccd97e617;p=gosa.git Fixed flag handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2522 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc index ce2cfaca4..624ba23a5 100644 --- a/plugins/admin/systems/class_glpiPrinterAccount.inc +++ b/plugins/admin/systems/class_glpiPrinterAccount.inc @@ -485,11 +485,13 @@ class glpiPrinterAccount extends plugin } } - foreach(array("flags_serial","flags_par","flags_usb") as $checkboxes){ - if(isset($_POST[$checkboxes])){ - $this->$checkboxes = 1; - }else{ - $this->$checkboxes = 0; + if(isset($_POST['glpiPrinterFlagsPosted'])){ + foreach(array("flags_serial","flags_par","flags_usb") as $checkboxes){ + if(isset($_POST[$checkboxes])){ + $this->$checkboxes = 1; + }else{ + $this->$checkboxes = 0; + } } } diff --git a/plugins/admin/systems/glpiPrinter.tpl b/plugins/admin/systems/glpiPrinter.tpl index c39167446..03a758cf3 100644 --- a/plugins/admin/systems/glpiPrinter.tpl +++ b/plugins/admin/systems/glpiPrinter.tpl @@ -75,6 +75,7 @@ +

{t}Information{/t}