From 499264302e95e77353af67b4c0adecb026dd2eb0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 1 Mar 2006 05:04:45 +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@2778 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/class_ogroupManagement.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/admin/ogroups/class_ogroupManagement.inc b/plugins/admin/ogroups/class_ogroupManagement.inc index 300683b89..f84780301 100644 --- a/plugins/admin/ogroups/class_ogroupManagement.inc +++ b/plugins/admin/ogroups/class_ogroupManagement.inc @@ -270,7 +270,7 @@ class ogroupManagement extends plugin unset($_SESSION['objectinfo']); } - if ($s_action=="edit"){ + if (($s_action=="edit") && (! isset($this->ogroup->config)) ){ /* Get 'dn' from posted 'uid', must be unique */ $this->dn= $this->ogrouplist[$s_entry]['dn']; @@ -296,7 +296,7 @@ class ogroupManagement extends plugin } /* Finish button has been pressed */ - if (isset($_POST['edit_finish'])){ + if ((isset($_POST['edit_finish'])) && (isset($this->ogroup->config)) ){ /* Check tabs, will feed message array */ $message= $this->ogroup->check(); @@ -337,7 +337,7 @@ class ogroupManagement extends plugin } /* Show dialog if object is present */ - if ($this->ogroup){ + if (isset($this->ogroup->config)){ $display= $this->ogroup->execute(); /* Don't show buttons if tab dialog requests this */ -- 2.30.2