From a14adadfba9b0509e1638590ef39c3dccd97e617 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 18 Jan 2006 12:12:59 +0000 Subject: [PATCH] Fixed flag handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2522 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_glpiPrinterAccount.inc | 12 +++++++----- plugins/admin/systems/glpiPrinter.tpl | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) 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}

-- 2.30.2