Code

Updated gosaSupportDaemon.
[gosa.git] / gosa-core / include / class_plugin.inc
index 3527494d88e01990e729d981e3ed15fb021018b2..89642ff57d9b66df0757447e42d714e02fd5ad27 100644 (file)
@@ -88,6 +88,7 @@ class plugin
 
   /* Save unit tags */
   var $gosaUnitTag= "";
+  var $skipTagging= FALSE;
 
   /*!
     \brief Used standard values
@@ -358,7 +359,7 @@ class plugin
     }
 
     /* Handle tagging */
-    $this->tag_attrs(&$this->attrs);
+    $this->tag_attrs($this->attrs);
   }
 
 
@@ -964,8 +965,16 @@ class plugin
     }
   }
 
-  function tag_attrs($at, $dn= "", $tag= "", $show= false)
+  function tag_attrs(&$at, $dn= "", $tag= "", $show= false)
   {
+    /* Skip tagging? 
+       If this is called from departmentGeneric, we have to skip this
+        tagging procedure. 
+     */
+    if($this->skipTagging){
+      return;
+    }
+
     /* No dn? Self-operation... */
     if ($dn == ""){
       $dn= $this->dn;
@@ -1004,14 +1013,14 @@ class plugin
     }
 
     /* Remove tags that may already be here... */
-    remove_objectClass("gosaAdministrativeUnitTag", &$at);
+    remove_objectClass("gosaAdministrativeUnitTag", $at);
     if (isset($at['gosaUnitTag'])){
         unset($at['gosaUnitTag']);
     }
 
     /* Set tag? */
     if ($tag != ""){
-      add_objectClass("gosaAdministrativeUnitTag", &$at);
+      add_objectClass("gosaAdministrativeUnitTag", $at);
       $at['gosaUnitTag']= $tag;
     }
   }