From: hickert Date: Fri, 27 Nov 2009 17:03:34 +0000 (+0000) Subject: Updated management class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b10fe2ddbdc05881f82c533cd2196a117658b3d1;p=gosa.git Updated management class -Allows to save dingle dialogs too git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14843 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_management.inc b/gosa-core/include/class_management.inc index 324da97b0..59a848199 100644 --- a/gosa-core/include/class_management.inc +++ b/gosa-core/include/class_management.inc @@ -593,7 +593,14 @@ class management * } * } * } - **/ + **/ + + // Do not create a new tabObject while there is already one opened, + // the user may have just pressed F5 to reload the page. + if(is_object($this->tabObject)){ + return; + } + $tabType = $this->tabType; $tabClass = $this->tabClass; $aclCategory = $this->aclCategory; @@ -680,6 +687,18 @@ class management $this->remove_lock(); $this->closeDialogs(); } + }elseif($this->dialogObject instanceOf plugin){ + $this->dialogObject->save_object(); + $msgs = $this->dialogObject->check(); + if(count($msgs)){ + msg_dialog::displayChecks($msgs); + return(""); + }else{ + $this->dialogObject->save(); + @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$this->dns,"Entry saved!"); + $this->remove_lock(); + $this->closeDialogs(); + } } }