From d288fadaecbd6303a41dd81e23739080389f89a4 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 7 Feb 2013 08:45:21 +0000 Subject: [PATCH] Get 'Whole query' context menu checkbox working with Export -> CSV menu item --- addressbook/inc/class.addressbook_ui.inc.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 153e970272..5c34f11e75 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -597,8 +597,6 @@ class addressbook_ui extends addressbook_bo 'children' => array( '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', @@ -849,6 +847,18 @@ class addressbook_ui extends addressbook_bo // does not return! $Ok = false; break; + case 'csv': + $action_msg = lang('exported'); + egw_framework::set_onload( + "egw_openWindowCentered2('".egw::link('/index.php',array( + 'menuaction' => 'importexport.importexport_export_ui.export_dialog', + 'appname' => 'addressbook', + 'plugin' => 'addressbook_export_contacts_csv', + 'selection' => $use_all ? 'use_all' : implode(',',$checked) + ))."','_blank',850,440);"); + $success = count($checked); + return true; + break; case 'infolog': egw::redirect_link('/index.php',array(