From ad2e30572e7ab6c0feac66bc0aefa0b9de08bcda Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 20 Sep 2006 05:51:15 +0000 Subject: [PATCH] Fixed acl naming '_' not valid git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4737 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_glpiPrinterAccount.inc | 6 +++++- plugins/admin/systems/glpiPrinter.tpl | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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} -- 2.30.2