diff --git a/addressbook/inc/class.addressbook_hooks.inc.php b/addressbook/inc/class.addressbook_hooks.inc.php index 40e1d47a8c..2701236766 100644 --- a/addressbook/inc/class.addressbook_hooks.inc.php +++ b/addressbook/inc/class.addressbook_hooks.inc.php @@ -284,7 +284,9 @@ class addressbook_hooks 'type' => 'export', 'application' => 'addressbook' )); - $options = array(); + $options = array( + '~nextmatch~' => lang('No definition') + ); $default_def = 'export-addressbook'; foreach ((array)$definitions->get_definitions() as $identifier) { diff --git a/calendar/inc/class.calendar_hooks.inc.php b/calendar/inc/class.calendar_hooks.inc.php index 6be29db0b4..fd9d8a3864 100644 --- a/calendar/inc/class.calendar_hooks.inc.php +++ b/calendar/inc/class.calendar_hooks.inc.php @@ -622,7 +622,9 @@ class calendar_hooks 'type' => 'export', 'application' => 'calendar' )); - $options = array(); + $options = array( + '~nextmatch~' => lang('No definition') + ); foreach ((array)$definitions->get_definitions() as $identifier) { try diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index 23bf55c4b9..98aaf9f1d9 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -497,7 +497,7 @@ class nextmatch_widget $name = is_object($extension_data['template']) ? $extension_data['template']->name : $extension_data['template']; list($app) = explode('.',$name); $definition = $GLOBALS['egw_info']['user']['preferences'][$app]['nextmatch-export-definition']; - if(!$value['no_csv_export'] && ($definition || !is_array($value['csv_fields']))) + if(!$value['no_csv_export'] && $definition != '~nextmatch~' && ($definition || !is_array($value['csv_fields']))) { if($GLOBALS['egw_info']['user']['apps']['importexport'] && ($definition || $value['csv_fields']) && is_object($nextmatch)) { diff --git a/infolog/inc/class.infolog_hooks.inc.php b/infolog/inc/class.infolog_hooks.inc.php index 516d567d46..d3cc2bae30 100644 --- a/infolog/inc/class.infolog_hooks.inc.php +++ b/infolog/inc/class.infolog_hooks.inc.php @@ -410,7 +410,9 @@ class infolog_hooks 'type' => 'export', 'application' => 'infolog' )); - $options = array(); + $options = array( + '~nextmatch~' => lang('No definition') + ); foreach ((array)$definitions->get_definitions() as $identifier) { try diff --git a/resources/inc/class.resources_hooks.inc.php b/resources/inc/class.resources_hooks.inc.php index 322163e9b2..1f359ce742 100644 --- a/resources/inc/class.resources_hooks.inc.php +++ b/resources/inc/class.resources_hooks.inc.php @@ -189,7 +189,9 @@ class resources_hooks 'type' => 'export', 'application' => 'resources' )); - $options = array(); + $options = array( + '~nextmatch~' => lang('No definition') + ); $default_def = 'export-resources'; foreach ((array)$definitions->get_definitions() as $identifier) { diff --git a/timesheet/inc/class.timesheet_hooks.inc.php b/timesheet/inc/class.timesheet_hooks.inc.php index 08daac6d47..4c84b59807 100644 --- a/timesheet/inc/class.timesheet_hooks.inc.php +++ b/timesheet/inc/class.timesheet_hooks.inc.php @@ -203,7 +203,9 @@ class timesheet_hooks 'type' => 'export', 'application' => 'timesheet' )); - $options = array(); + $options = array( + '~nextmatch~' => lang('No definition') + ); foreach ((array)$definitions->get_definitions() as $identifier) { try