summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 43e16c4)
raw | patch | inline | side by side (parent: 43e16c4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Apr 2008 06:56:00 +0000 (06:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Apr 2008 06:56:00 +0000 (06:56 +0000) |
-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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10340 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index 43af7119741498a082c4885cef4a66dfc60c6a33..552052edb1612de7d269c28e84e3df583318b3c5 100644 (file)
/* 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 */