From: hickert Date: Wed, 22 Feb 2006 09:23:01 +0000 (+0000) Subject: Added new lock_edit_anyway funtionality X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=149228754184cb2c0f97dfbd2042b6eb180fcf35;p=gosa.git Added new lock_edit_anyway funtionality git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2718 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index dd02c0f7a..a2b8d72ee 100644 --- a/html/main.php +++ b/html/main.php @@ -288,7 +288,6 @@ $smarty->assign ("plug", "$plug"); $header= "".$smarty->fetch(get_template_path('headers.tpl')); - /* React on clicks */ if ($_SERVER["REQUEST_METHOD"] == "POST"){ @@ -296,6 +295,14 @@ if ($_SERVER["REQUEST_METHOD"] == "POST"){ lock at this point globally. Plugins do not need to remove it. */ if (isset($_POST['delete_lock']) && isset($_SESSION['dn'])){ del_lock ($_SESSION['dn']); + + /* Set old Post data */ + if(isset($_SESSION['LOCK_VARS_USED'])){ + foreach($_SESSION['LOCK_VARS_USED'] as $name => $value){ + $_GET[$name] = $value; + $_POST[$name] = $value; + } + } sess_del ('dn'); }