Use select_all flag to export all entries, not just visible selected ones.

This commit is contained in:
Nathan Gray 2014-07-07 16:47:08 +00:00
parent 1273955f9d
commit 3ba557f4b8
2 changed files with 3 additions and 1 deletions

View File

@ -644,7 +644,7 @@ class addressbook_ui extends addressbook_bo
'csv' => array(
'caption' => 'Export as CSV',
'allowOnMultiple' => true,
'url' => 'menuaction=importexport.importexport_export_ui.export_dialog&appname=addressbook&plugin=addressbook_export_contacts_csv&selection=$id',
'url' => 'menuaction=importexport.importexport_export_ui.export_dialog&appname=addressbook&plugin=addressbook_export_contacts_csv&selection=$id&select_all=$select_all',
'popup' => '850x440'
),
'vcard' => array(

View File

@ -52,6 +52,8 @@ class importexport_export_ui {
$_appname = $_content['appname'] ? $_content['appname'] : $_GET['appname'];
$_definition = $_content['definition'] ? $_content['definition'] : $_GET['definition'];
$_plugin = $_content['plugin'] ? $_content['plugin'] : $_GET['plugin'];
// Select all from context menu, means use all search results, not just selected
if($_GET['select_all']) $_GET['selection'] = 'search';
$_selection = $_content['selection'] ? $_content['selection'] : $_GET['selection'];
if($_GET['selection'] || $_content['selection_passed']) $content['selection_passed'] = $preserv['selection_passed'] = true;