From 4b575c27b790f1e57d77a248da3bfe7f05777d36 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 22 Jun 2006 07:26:15 +0000 Subject: [PATCH] Fixed dep tagging git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3864 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/departments/class_departmentGeneric.inc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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); -- 2.30.2