Code

Do not use objectinfo for locking.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Dec 2008 08:39:30 +0000 (08:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Dec 2008 08:39:30 +0000 (08:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13272 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dfs/addons/godfs/class_dfsManagment.inc

index 1774090f49f9f3c91fece5d61144b82adac6ecdc..3dfb0f37f2a52cbe9b3765ece0d5e5416ebf82e9 100644 (file)
@@ -96,7 +96,6 @@ class dfsManagment extends plugin {
         $this->dfstab = new dfstabs($this->config, $this->config->data['TABS']['DFSTABS'], $this->dn);
         $this->dfstab->set_acl($this->acl);
         $this->dfstab->save_object();
-        set_object_info($this->dn);
       }
     } 
       
@@ -120,11 +119,10 @@ class dfsManagment extends plugin {
 
     # cancel pressed
     if (isset($_POST['edit_cancel'])) {
-      del_lock (get_object_info());
+      del_lock ($this->dn);
       unset ($this->dfstab);
       $this->dfstab = NULL;
       $this->dn = "";
-      set_object_info();
     }
 
     # delete pressed
@@ -148,11 +146,10 @@ class dfsManagment extends plugin {
              msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->basedn, LDAP_DEL, get_class()));
       }
       
-      del_lock (get_object_info());
+      del_lock ($this->dn);
       unset ($this->dfstab);
       $this->dfstab = NULL;
       $this->dn = "";
-      set_object_info();
     }
 
     # generate main page no tabs