Code

Added (partly) working fai tagging
[gosa.git] / plugins / admin / fai / class_faiVariable.inc
index 81a411dc725e6aa5dcf3bbf469b3833b88abcb20..4a901123ea6128c0fc6f4884ff01dce789cb74d6 100644 (file)
@@ -116,7 +116,6 @@ class faiVariable extends plugin
     if((isset($_POST['EditSubObject']))&&(isset($_POST['SubObject']))){
 
       $var = $_POST['SubObject'][0];
-    
       $this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$var]);
       $this->dialog->acl = $this->acl;
       $_SESSION['objectinfo'] = $this->SubObjects[$var]['dn'];
@@ -188,7 +187,6 @@ class faiVariable extends plugin
     }
 
     $smarty->assign("SubObjects",$this->getList());
-    $smarty->assign("SubObjectKeys",array_flip($this->getList()));
 
       /* Magic quotes GPC, escapes every ' " \, to solve some security risks
      * If we post the escaped strings they will be escaped again
@@ -295,6 +293,10 @@ $ldap->modify ($this->attrs);
     }
     show_ldap_error($ldap->get_error());
  
+    /* Do object tagging */
+    $this->handle_object_tagging();
+    show_ldap_error($ldap->get_error());
     /* Prepare FAIscriptEntry to write it to ldap
      * First sort array.
      *  Because we must delete old entries first.
@@ -360,6 +362,9 @@ $ldap->modify ($tmp);
         $this->handle_post_events("add");
       }
       show_ldap_error($ldap->get_error()); 
+
+      $this->handle_object_tagging($sub_dn, $this->gosaUnitTag);
+      show_ldap_error($ldap->get_error()); 
     }
   }
 }