mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 03:41:53 +02:00
Change addressbook Export CSV context menu option to use importexport
This commit is contained in:
parent
354e344a1c
commit
d67191841b
@ -593,7 +593,12 @@ class addressbook_ui extends addressbook_bo
|
|||||||
'icon' => 'filesave',
|
'icon' => 'filesave',
|
||||||
'group' => ++$group,
|
'group' => ++$group,
|
||||||
'children' => array(
|
'children' => array(
|
||||||
'csv' => 'Export as CSV',
|
'csv' => array(
|
||||||
|
'caption' => 'Export as CSV',
|
||||||
|
'url' => 'menuaction=importexport.importexport_export_ui.export_dialog&appname=addressbook&selection=$id',
|
||||||
|
'popup' => '850x440',
|
||||||
|
'allowOnMultiple' => true,
|
||||||
|
),
|
||||||
'vcard' => 'Export as VCard',
|
'vcard' => 'Export as VCard',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -53,6 +53,7 @@ class importexport_export_ui {
|
|||||||
$_definition = $_content['definition'] ? $_content['definition'] : $_GET['definition'];
|
$_definition = $_content['definition'] ? $_content['definition'] : $_GET['definition'];
|
||||||
$_plugin = $_content['plugin'] ? $_content['plugin'] : $_GET['plugin'];
|
$_plugin = $_content['plugin'] ? $_content['plugin'] : $_GET['plugin'];
|
||||||
$_selection = $_content['selection'] ? $_content['selection'] : $_GET['selection'];
|
$_selection = $_content['selection'] ? $_content['selection'] : $_GET['selection'];
|
||||||
|
if($_GET['selection'] || $_content['selection_passed']) $content['selection_passed'] = $preserv['selection_passed'] = true;
|
||||||
|
|
||||||
// Check global setting
|
// Check global setting
|
||||||
if(!bo_merge::is_export_limit_excepted()) {
|
if(!bo_merge::is_export_limit_excepted()) {
|
||||||
@ -175,11 +176,11 @@ class importexport_export_ui {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// fill selection tab
|
// fill selection tab
|
||||||
if($definition && $definition->plugin_options['selection']) {
|
if($definition && $definition->plugin_options['selection'] && !$content['selection_passed']) {
|
||||||
$_selection = $definition->plugin_options['selection'];
|
$_selection = $definition->plugin_options['selection'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_selection && $content['old_definition'] == $content['definition']) {
|
if ($_selection && ($content['old_definition'] == $content['definition'] || $content['selection_passed'])) {
|
||||||
$readonlys[$tabs]['selection_tab'] = true;
|
$readonlys[$tabs]['selection_tab'] = true;
|
||||||
$content['selection'] = $_selection;
|
$content['selection'] = $_selection;
|
||||||
$preserv['selection'] = $_selection;
|
$preserv['selection'] = $_selection;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user