From d61941719da083ebb245965438779b63da613d86 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 1 Mar 2006 05:15:51 +0000 Subject: [PATCH] Prevent "reload errors" , "showning own lock message caused by reloading edit post" , "prevent displaying broken objects " git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2782 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_systemManagement.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index 7fbd4b428..ed3e70dc1 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -334,7 +334,8 @@ class systems extends plugin ********************/ /* User wants to edit data? */ - if ($s_action == "edit"){ +// if ($s_action == "edit"){ + if (($s_action == "edit") && (!isset($this->systab->config))){ $this->dn= $this->terminals[$s_entry]['dn']; @@ -615,7 +616,7 @@ class systems 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->systab->config))){ /* Check tabs, will feed message array */ $message= $this->systab->check(); @@ -709,7 +710,7 @@ class systems extends plugin ********************/ /* Show tab dialog if object is present */ - if ($this->systab){ + if (isset($this->systab->config)){ $display= $this->systab->execute(); -- 2.30.2