From: hickert Date: Mon, 1 Dec 2008 10:01:51 +0000 (+0000) Subject: Fixed entry locking X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=821d598206615701869aa85b5633f85ce1644721;p=gosa.git Fixed entry locking git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13091 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/main.inc b/gosa-core/plugins/personal/generic/main.inc index 0ab96b0de..63c770065 100644 --- a/gosa-core/plugins/personal/generic/main.inc +++ b/gosa-core/plugins/personal/generic/main.inc @@ -27,7 +27,12 @@ if (!$remove_lock){ /* Reset requested? */ if (isset($_POST['edit_cancel']) || isset($_POST['password_cancel']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){ - del_lock ($ui->dn); + + /* Only remove lock if object was opened + */ + if(session::is_set('user') && session::is_set('edit')){ + del_lock ($ui->dn); + } session::un_set ('edit'); session::un_set ('user'); }