Code

Fixed duplicated info message in dep_iframe.tpl
[gosa.git] / plugins / admin / departments / class_departmentGeneric.inc
index 5c557e3928125e437ab3884dcb81d844a384dfe4..3efe8f8fdb27b8400285e58450d0c8d2f8cb3680 100644 (file)
@@ -57,6 +57,8 @@ class department extends plugin
       all POST / GET activity, "Department tagging" and the checkbox within the generic template.
    */
   var $UnitTagDiabled     = TRUE;
+  var $orig_base = "";
+  var $orig_ou = "";
 
        function department ($config, $dn)
        {
@@ -66,6 +68,7 @@ class department extends plugin
                $this->ui= get_userinfo();
                $this->dn= $dn;
                $this->orig_dn= $dn;
+               $this->orig_ou= $this->ou;
                $this->config= $config;
 
                /* Set base */
@@ -80,6 +83,8 @@ class department extends plugin
                        $this->base= preg_replace ("/^[^,]+,/", "", $this->dn);
                }
 
+    $this->orig_base = $this->base;
+
                /* Is administrational Unit? */
                if ($dn != "new" && in_array_ics('gosaAdministrativeUnit', $this->attrs['objectClass'])){
                        $this->is_administrational_unit= true;