From e6474199981bcb02d2d0679522006e4546e06a9a Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 17 Jan 2006 09:50:08 +0000 Subject: [PATCH] Fixed some errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2498 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_glpiPrinterAccount.inc | 7 +++++-- plugins/admin/systems/glpiPrinter.tpl | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc index 1e8aac795..ce2cfaca4 100644 --- a/plugins/admin/systems/class_glpiPrinterAccount.inc +++ b/plugins/admin/systems/class_glpiPrinterAccount.inc @@ -60,6 +60,7 @@ class glpiPrinterAccount extends plugin var $usedDevices = array(); // Which devices are currently selected var $usedAttachments = array(); // Used Attachments + /* Contructor Sets default values and checks if we already have an existing glpi account */ @@ -68,6 +69,8 @@ class glpiPrinterAccount extends plugin plugin::plugin ($config, $dn); $this->ui= get_userinfo(); + $this->is_account = false; + /* Abort class construction, if no db is defined */ if(!isset($this->config->data['SERVERS']['GLPI'])){ return; @@ -123,11 +126,11 @@ class glpiPrinterAccount extends plugin /* Assign smarty defaults To avoid undefined indexes, if there is an error with the glpi db */ - foreach(array("PrinterTypeKeys","PrinterTypes") as $attr){ + foreach(array("PrinterTypeKeys","PrinterTypes","ManufacturerKeys","Manufacturers","Attachments","AttachmentKeys") as $attr){ $smarty->assign($attr,array()); $smarty->assign($attr."ACL"," disabled "); } - foreach(array("type") as $attr){ + foreach(array("type","FK_glpi_enterprise","tech_num","contact_num","comments","flags_serial","flags_par","flags_usb") as $attr){ $smarty->assign($attr,""); $smarty->assign($attr."ACL"," disabled "); } diff --git a/plugins/admin/systems/glpiPrinter.tpl b/plugins/admin/systems/glpiPrinter.tpl index 3d8731c25..91da06e94 100644 --- a/plugins/admin/systems/glpiPrinter.tpl +++ b/plugins/admin/systems/glpiPrinter.tpl @@ -52,7 +52,7 @@
- + {t}Serial{/t} @@ -60,7 +60,7 @@
- + {t}Parallel{/t} @@ -68,7 +68,7 @@
- + {t}USB{/t} -- 2.30.2