From 5182088544d8de60ae3200b23e1c0eb785c32663 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 1 Mar 2006 04:55:38 +0000 Subject: [PATCH] Some page reload fixes, git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2776 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 172ae9bf2..c622ffbd2 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -183,7 +183,9 @@ class userManagement extends plugin if (($_SERVER["REQUEST_METHOD"] == "POST")||($_SERVER["REQUEST_METHOD"]== "GET")){ /* User wants to edit data? */ - if ($s_action=="edit"){ + + /* Check for config to ensure that there is currently no user open */ + if (($s_action=="edit") && (!isset($this->usertab->config))){ /* Get 'dn' from posted 'uid', must be unique */ @@ -410,7 +412,7 @@ class userManagement extends plugin /* Finish user edit is triggered by the tabulator dialog, so the user wants to save edited data. Check and save at this point. */ - if (isset($_POST['edit_finish'])){ + if ((isset($_POST['edit_finish'])) && (isset($this->usertab->config))){ /* Check tabs, will feed message array */ $this->usertab->last= $this->usertab->current; @@ -629,7 +631,7 @@ class userManagement extends plugin } /* Show tab dialog if object is present */ - if ($this->usertab){ + if(isset($this->usertab->config)){ $display= $this->usertab->execute(); /* Don't show buttons if tab dialog requests this */ -- 2.30.2