summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd1877d)
raw | patch | inline | side by side (parent: fd1877d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 Feb 2008 09:44:07 +0000 (09:44 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 Feb 2008 09:44:07 +0000 (09:44 +0000) |
-Fixed add / remove of department tagging
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9100 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9100 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_plugin.inc | patch | blob | history | |
gosa-core/plugins/admin/departments/class_departmentGeneric.inc | patch | blob | history |
index acdcbfe085bdf04bd0e926118a3cac885ef7c76f..89642ff57d9b66df0757447e42d714e02fd5ad27 100644 (file)
/* Save unit tags */
var $gosaUnitTag= "";
+ var $skipTagging= FALSE;
/*!
\brief Used standard values
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;
diff --git a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc
index a59500df8e2a5b76d6282611f8a75d2217320580..08c7f3b101b5cc4370570011d7a40acec93c8dd6 100644 (file)
$this->gosaUnitTag= preg_replace("/\./", "", $sec.$usec);
}
}
+ $this->skipTagging = TRUE;
plugin::save();
$this->attrs['gosaUnitTag'] = $this->gosaUnitTag;
}
}
$this->attrs['objectClass']= $tmp;
-
- if(!$has_unit_tag && isset($this->attrs['gosaUnitTag'])){
- $this->attrs['gosaUnitTag']= array();
- }
+ $this->attrs['gosaUnitTag']= array();
$this->gosaUnitTag = "";
}