From 24f3beff9f72eb419e6df82640798136c5d585da Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 29 Jun 2009 13:09:15 +0000 Subject: [PATCH] Updated locking behaviour for systems. -Locks were created with the source dn, but removed for the target dn. -If the system was renamed, the old locks were not removed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13819 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_systemManagement.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 6fa29968e..7bd00a727 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -1461,10 +1461,11 @@ class systems extends plugin function remove_lock() { - if (isset($this->systab->dn)){ - del_lock ($this->systab->dn); - }elseif(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){ + + if(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){ del_lock($this->dn); + }elseif (isset($this->systab->dn)){ + del_lock ($this->systab->dn); } if(isset($this->dns) && is_array($this->dns) && count($this->dns)){ del_lock($this->dns); -- 2.30.2