Use nextmatch preferred definition as pre-selected export definition

This commit is contained in:
Nathan Gray 2011-06-08 15:01:27 +00:00
parent 7ee8739394
commit 483069d970

View File

@ -71,6 +71,10 @@ class importexport_export_ui {
$this->js->set_onload("set_style_by_class('tr','select_definition','display','none');"); $this->js->set_onload("set_style_by_class('tr','select_definition','display','none');");
} }
// Check for preferred definition
if(!$_definition && $_appname) {
$_definition = $GLOBALS['egw_info']['user']['preferences'][$_appname]['nextmatch-export-definition'];
}
// fill definitions // fill definitions
$sel_options['definition'] = array('' => lang('Select')); $sel_options['definition'] = array('' => lang('Select'));
$definitions = new importexport_definitions_bo(array( $definitions = new importexport_definitions_bo(array(