From 0152487829e641589ec79a2aebb93ee1ca95a93f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 1 Mar 2006 05:12:42 +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@2781 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiManagement.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 7596c0a9c..920257bcc 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -279,7 +279,8 @@ class faiManagement extends plugin } /* Edit Entry */ - if($s_action == "edit"){ + //if($s_action == "edit"){ + if(($s_action == "edit") && (!isset($this->dialog->config))){ $entry = $this->objects[$s_entry]; $a_setup = ($this->get_type($entry)); @@ -563,7 +564,7 @@ class faiManagement extends plugin * If it was possible to save it, remove dialog object. * If it wasn't possible, show errors and keep dialog. */ - if(isset($_POST['edit_finish'])){ + if((isset($_POST['edit_finish'])) && (isset($this->dialog->config))){ $this->dialog->save_object(); if(count($this->dialog->check())!=0){ foreach($this->dialog->check() as $msg){ @@ -585,7 +586,7 @@ class faiManagement extends plugin * Here we need both, save and cancel */ - if($this->dialog != NULL){ + if(($this->dialog != NULL) && (isset($this->dialog->config))){ $display .= $this->dialog->execute(); /* Don't show buttons if tab dialog requests this */ if (((isset($this->dialog->current))&&($this->dialog->by_object[$this->dialog->current]->is_dialog))){ -- 2.30.2