mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
Allow app to provide an export definition, used if preference can't be found
This commit is contained in:
parent
a52092cf33
commit
3e1f3f9df8
@ -479,13 +479,13 @@ class nextmatch_widget
|
|||||||
$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 = $GLOBALS['egw_info']['user']['preferences'][$app]['nextmatch-export-definition'];
|
||||||
if(!$value['no_csv_export'] && $definition) {
|
if(!$value['no_csv_export'] && ($definition || !is_array($value['csv_fields']))) {
|
||||||
if($GLOBALS['egw_info']['user']['apps']['importexport'] && $definition) {
|
if($GLOBALS['egw_info']['user']['apps']['importexport'] && ($definition || $value['csv_fields'])) {
|
||||||
$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(
|
||||||
'menuaction' => 'importexport.importexport_export_ui.export_dialog',
|
'menuaction' => 'importexport.importexport_export_ui.export_dialog',
|
||||||
'appname' => $app,
|
'appname' => $app,
|
||||||
'definition' => $definition
|
'definition' => $definition ? $definition : $value['csv_fields']
|
||||||
)) .
|
)) .
|
||||||
"', '_blank', 850, 440, 'yes'); return false;"
|
"', '_blank', 850, 440, 'yes'); return false;"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user