From adfa941ad70c6d2c5177787bd1192a1020ae95a1 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 27 Jul 2006 10:45:07 +0000 Subject: [PATCH] Fixed printer creation via workstation/server extension git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4324 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index dd7cf2e30..3c2e84c71 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -714,6 +714,14 @@ class printgeneric extends plugin $this->attrs['objectClass'][] = "gosaAdministrativeUnitTag"; } + if($this->orig_dn == 'new'){ + foreach(array("gotoGroupPrinter","gotoUserAdminPrinter","gotoGroupAdminPrinter","gotoUserPrinter") as $checkVar){ + if(count($this->attrs[$checkVar]) == 0 || empty($this->attrs[$checkVar])){ + unset($this->attrs[$checkVar]); + } + } + } + /* Write back to ldap */ $ldap= $this->config->get_ldap_link(); if ($this->orig_dn == 'new'){ -- 2.30.2