From: hickert Date: Fri, 11 Apr 2008 06:56:00 +0000 (+0000) Subject: Updated system Mangement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dbf1dbdec6f43603fcf9dc0f0bdb30dadc0f9908;p=gosa.git Updated system Mangement -Updated save method. Call save also when 'OK' was pressed on a msg_dialog. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10340 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 43af71197..552052edb 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -878,6 +878,17 @@ 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. */ + + /* Dirty workaround - MSG_DIALOG - OK + If a message dialog is shown and we press 'OK' + then try to save again. + */ + foreach($_POST as $name => $value){ + if(preg_match("/^MSG_OK/",$name)){ + $_POST['edit_finish'] = TRUE; + } + } + if ((isset($_POST['edit_finish']) || isset($_POST['edit_apply'])) && (isset($this->systab->config)) || $save_object_directly){ /* Check tabs, will feed message array */