From: hickert Date: Wed, 20 Sep 2006 05:51:15 +0000 (+0000) Subject: Fixed acl naming '_' not valid X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad2e30572e7ab6c0feac66bc0aefa0b9de08bcda;p=gosa.git Fixed acl naming '_' not valid git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4737 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc index 61fd54788..d9716247d 100644 --- a/plugins/admin/systems/class_glpiPrinterAccount.inc +++ b/plugins/admin/systems/class_glpiPrinterAccount.inc @@ -664,6 +664,10 @@ class glpiPrinterAccount extends plugin } } + if(isset($_POST['FK_glpi_enterprise']) && $this->acl_is_writeable("FKglpienterprise")){ + $this->FK_glpi_enterprise = $_POST['FK_glpi_enterprise']; + } + foreach(array("flags_serial","flags_par","flags_usb") as $checkboxes){ if($this->acl_is_writeable($checkboxes)){ if(isset($_POST[$checkboxes])){ @@ -781,7 +785,7 @@ class glpiPrinterAccount extends plugin "location" => _("Location"), "contact_num" => _("Contact person"), "type" => _("Type"), - "FK_glpi_enterprise" => _("Manufacturer"), + "FKglpienterprise" => _("Manufacturer"), "Attachments" => _("Attachments"), diff --git a/plugins/admin/systems/glpiPrinter.tpl b/plugins/admin/systems/glpiPrinter.tpl index 225f52e7c..46e344678 100644 --- a/plugins/admin/systems/glpiPrinter.tpl +++ b/plugins/admin/systems/glpiPrinter.tpl @@ -23,12 +23,12 @@ {t}Manufacturer{/t} -{render acl=$FK_glpi_enterpriseACL} +{render acl=$FKglpienterpriseACL} {/render} -{render acl=$FK_glpi_enterpriseACL} +{render acl=$FKglpienterpriseACL} {/render}