index 3527494d88e01990e729d981e3ed15fb021018b2..89642ff57d9b66df0757447e42d714e02fd5ad27 100644 (file)
/* Save unit tags */
var $gosaUnitTag= "";
+ var $skipTagging= FALSE;
/*!
\brief Used standard values
}
/* Handle tagging */
- $this->tag_attrs(&$this->attrs);
+ $this->tag_attrs($this->attrs);
}
}
}
- 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;
}
/* 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;
}
}