Code

Fixed dep tagging
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jun 2006 07:26:15 +0000 (07:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jun 2006 07:26:15 +0000 (07:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3864 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentGeneric.inc

index 64d631deb83355f3e6e9d874f50cdac520e24764..ed1216cdf019388fbdbee7ffea12a2793fa8a2f5 100644 (file)
@@ -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);