From 149228754184cb2c0f97dfbd2042b6eb180fcf35 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Feb 2006 09:23:01 +0000 Subject: [PATCH] Added new lock_edit_anyway funtionality git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2718 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'); } -- 2.30.2