diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc
index 29e40dedca7d8405cc9c0d89921f6766984105ab..7ca7c32309f39c019234fc9e783e8755bac63ece 100644 (file)
function save_object()
{
if(isset($_POST['MimeGeneric']) && !preg_match("/freeze/i",$this->FAIstate)){
-
-
+
// Act on list actions here
$this->patternList->save_object();
$this->applicationList->save_object();
$this->embeddedList->save_object();
- $this->use_gotoMimeFilePattern = array_values($this->patternList->getMaintainedData());
- $this->use_gotoMimeApplication = array_values($this->applicationList->getMaintainedData());
- $this->use_gotoMimeEmbeddedApplication = array_values($this->embeddedList->getMaintainedData());
+ $action=$this->patternList->getAction();
+ if(in_array($action['action'],array('delete', 'reorder'))){
+ $this->use_gotoMimeFilePattern = array_values($this->patternList->getMaintainedData());
+ }
+ $action=$this->applicationList->getAction();
+ if(in_array($action['action'],array('delete', 'reorder'))){
+ $this->use_gotoMimeApplication = array_values($this->applicationList->getMaintainedData());
+ }
+ $action=$this->embeddedList->getAction();
+ if(in_array($action['action'],array('delete', 'reorder'))){
+ $this->use_gotoMimeEmbeddedApplication = array_values($this->embeddedList->getMaintainedData());
+ }
/* Create a base backup and reset the
base directly after calling plugin::save_object();