mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 14:58:43 +01:00
Change importexport exporting to be able to pass a definition
This commit is contained in:
parent
908b4f0e63
commit
20d6378bd2
@ -478,13 +478,13 @@ class nextmatch_widget
|
|||||||
if(!$value['no_csv_export'] && ($value['csv_fields'] && !is_array($value['csv_fields']) || !array_key_exists('csv_fields', $value))) {
|
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);
|
||||||
$key = $extension_data['csv_fields'] === true ? 'nextmatch-export-definition' : $extension_data['csv_fields'];
|
$definition = $value['csv_fields'] === true ? $GLOBALS['egw_info']['user']['preferences'][$app]['nextmatch-export-definition'] : $value['csv_fields'];
|
||||||
if($GLOBALS['egw_info']['user']['apps']['importexport'] && $GLOBALS['egw_info']['user']['preferences'][$app][$key]) {
|
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(
|
||||||
'menuaction' => 'importexport.importexport_export_ui.export_dialog',
|
'menuaction' => 'importexport.importexport_export_ui.export_dialog',
|
||||||
'appname' => $app,
|
'appname' => $app,
|
||||||
'definition' => $GLOBALS['egw_info']['user']['preferences'][$app][$key]
|
'definition' => $definition
|
||||||
)) .
|
)) .
|
||||||
"', '_blank', 850, 440, 'yes'); return false;"
|
"', '_blank', 850, 440, 'yes'); return false;"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user