X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_glpiPrinterAccount.inc;h=ce2cfaca4874e26850baa30ab0cbf3c8172cb32b;hb=e99742e600fa6fa4b514d9209ee7641ea51260c5;hp=1e8aac795b74059abace4b9e453b721857953ac4;hpb=3c7276438051e6a326443ade780b12b8e276ccfb;p=gosa.git 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 "); }