From 4cc09af45ded2e633997a7cb8964d4fd8e28978e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 3 Jun 2013 17:43:43 +0000 Subject: [PATCH] Fix Export as CSV context option to not bring back the popup if you change a nextmatch filter --- addressbook/inc/class.addressbook_ui.inc.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 26f82072d8..60c89be5df 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -597,6 +597,8 @@ 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', + 'popup' => '850x440' ), 'vcard' => 'Export as VCard', ), @@ -846,18 +848,6 @@ 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 ? 'all' : implode(',',$checked) - ))."','_blank',850,440);"); - $success = count($checked); - return true; - break; case 'infolog': egw::redirect_link('/index.php',array(