mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
Give CSV export definition preference priority over app settings
This commit is contained in:
parent
eeb336c77d
commit
c2f1340075
@ -489,10 +489,10 @@ class nextmatch_widget
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for preferred import/export definition
|
// Check for preferred import/export definition
|
||||||
if(!$value['no_csv_export'] && ($value['csv_fields'] && !is_array($value['csv_fields']) || !array_key_exists('csv_fields', $value))) {
|
$name = is_object($extension_data['template']) ? $extension_data['template']->name : $extension_data['template'];
|
||||||
$name = is_object($extension_data['template']) ? $extension_data['template']->name : $extension_data['template'];
|
list($app) = explode('.',$name);
|
||||||
list($app) = explode('.',$name);
|
$definition = $GLOBALS['egw_info']['user']['preferences'][$app]['nextmatch-export-definition'];
|
||||||
$definition = $value['csv_fields'] === true ? $GLOBALS['egw_info']['user']['preferences'][$app]['nextmatch-export-definition'] : $value['csv_fields'];
|
if(!$value['no_csv_export'] && $definition) {
|
||||||
if($GLOBALS['egw_info']['user']['apps']['importexport'] && $definition) {
|
if($GLOBALS['egw_info']['user']['apps']['importexport'] && $definition) {
|
||||||
$nextmatch->set_cell_attribute('export', 'onclick',
|
$nextmatch->set_cell_attribute('export', 'onclick',
|
||||||
"egw_openWindowCentered2('". egw::link('/index.php', array(
|
"egw_openWindowCentered2('". egw::link('/index.php', array(
|
||||||
|
Loading…
Reference in New Issue
Block a user