From 54c16afe78bba7f8dd93371ec19404370d6a0a0a Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 1 Mar 2006 05:09:33 +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@2780 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/departments/class_departmentManagement.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc index 89db9a176..89178d113 100644 --- a/plugins/admin/departments/class_departmentManagement.inc +++ b/plugins/admin/departments/class_departmentManagement.inc @@ -152,7 +152,7 @@ class departmentManagement extends plugin /* Edit Entry if Posted action (s_action) == edit * The entry which will be edited is defined in $s_entry */ - if ($s_action=="edit"){ + if (( $s_action=="edit") && (!isset($this->deptabs->config))){ $this->dn= $this->config->departments[trim($s_entry)]; if (($user= get_lock($this->dn)) != ""){ @@ -207,7 +207,7 @@ class departmentManagement extends plugin /* Edit Complete ... * Finish request */ - if (isset($_POST['edit_finish'])){ + if ((isset($_POST['edit_finish'])) && (isset($this->deptabs->config) ) ){ /* Check tabs, will feed message array */ $message= $this->deptabs->check(); @@ -252,7 +252,6 @@ class departmentManagement extends plugin unset ($_SESSION['objectinfo']); } - /* Headpage or normal plugin screen? */ if ($this->deptabs == NULL){ /* Check sorting variable */ -- 2.30.2