summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 341d94a)
raw | patch | inline | side by side (parent: 341d94a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Mar 2010 09:15:28 +0000 (09:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Mar 2010 09:15:28 +0000 (09:15 +0000) |
-Added a seperate saveFitler method, this avoids problems with inherited saveChanges methods
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16480 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16480 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_management.inc | patch | blob | history |
index 3bb4aec7aa0f6d3b92077382adf611b7c03bbb3f..c8a385764debb8cd96a303884be872887a1cdd01 100644 (file)
$this->registerAction("cancelSnapshot","closeDialogs");
$this->registerAction("config-filter","editFilter");
+ $this->registerAction("saveFilter","saveFilter");
}
/*! \brief Execute this plugin
if(isset($_POST['edit_cancel'])) $action['action'] = "cancel";
if(isset($_POST['delete_confirmed'])) $action['action'] = "removeConfirmed";
if(isset($_POST['delete_cancel'])) $action['action'] = "cancelDelete";
- if(isset($_POST['saveFilter'])) $action['action'] = "save";
+ if(isset($_POST['saveFilter'])) $action['action'] = "saveFilter";
if(isset($_POST['cancelFilter'])) $action['action'] = "cancel";
// Detect Snapshot actions
}
+ /*! \brief Save filter modifcations.
+ */
+ protected function saveFilter()
+ {
+ if($this->dialogObject instanceOf userFilter){
+ $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();
+ }
+ }
+ }
+
+
/*! \brief Save object modifications and closes dialogs (returns to object listing).
* - Calls '::check' to validate the given input.
* - Calls '::save' to save back object modifications (e.g. to ldap).