From: hickert Date: Thu, 22 Jun 2006 07:26:15 +0000 (+0000) Subject: Fixed dep tagging X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b575c27b790f1e57d77a248da3bfe7f05777d36;p=gosa.git Fixed dep tagging git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3864 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc index 64d631deb..ed1216cdf 100644 --- a/plugins/admin/departments/class_departmentGeneric.inc +++ b/plugins/admin/departments/class_departmentGeneric.inc @@ -175,6 +175,13 @@ class department extends plugin function must_be_tagged() { + if((isset($this->attrs['gosaUnitTag'][0])) && ($this->is_administrational_unit)){ + $this->must_be_tagged = false; + }elseif((!isset($this->attrs['gosaUnitTag'][0])) && (!$this->is_administrational_unit)){ + $this->must_be_tagged = false; + }else{ + $this->must_be_tagged = true; + } return $this->must_be_tagged; } @@ -325,10 +332,6 @@ class department extends plugin } show_ldap_error($ldap->get_error(), _("Saving department failed")); - /* The parameter forces only to set must_be_tagged, and don't touch any objects - This will be done later */ - $this->tag_objects(true); - /* Optionally execute a command after we're done */ $this->postcreate(); return(true);