Code

Fixed problem with tagging
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Jul 2006 12:35:50 +0000 (12:35 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Jul 2006 12:35:50 +0000 (12:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4076 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_plugin.inc
include/functions.inc

index 419446592c24640539633e7b269c4e550da13e99..469c3faef45c05d61587a3206bdbc728d28b8efc 100644 (file)
@@ -932,7 +932,7 @@ class plugin
           echo sprintf(_("Adding tag (%s) to object '%s'"), $tag, @LDAP::fix($dn))."<br>";
           flush();
         }
-        $nattrs= array("gosaUnitTag" => $this->gosaUnitTag);
+        $nattrs= array("gosaUnitTag" => $tag);
         $nattrs['objectClass']= array();
         for ($i= 0; $i<$attrs['objectClass']['count']; $i++){
           $oc= $attrs['objectClass'][$i];
index 46a0e53e9ddd51036441153a199723d2d01d374f..e45807dc4e0c14f17e8e4bbe077cc86d67ab5778 100644 (file)
@@ -1118,6 +1118,7 @@ function gen_locked_message($user, $dn)
   
   $remove= false;
 
+  /* Save variables from LOCK_VARS_TO_USE in session - for further editing */
   if((isset($_SESSION['LOCK_VARS_TO_USE']))&&(count($_SESSION['LOCK_VARS_TO_USE']))){
     $_SESSION['LOCK_VARS_USED']  =array();
     foreach($_SESSION['LOCK_VARS_TO_USE'] as $name){