From 50c63d6a9ef63a49617a064d4bc2ac29412b3079 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 27 Feb 2013 15:33:35 +0000 Subject: [PATCH] Fix addressbook CSV export - select options were non-standard --- addressbook/inc/class.addressbook_export_contacts_csv.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_export_contacts_csv.inc.php b/addressbook/inc/class.addressbook_export_contacts_csv.inc.php index bbd9fa07bc..b6c5ed5e27 100644 --- a/addressbook/inc/class.addressbook_export_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_export_contacts_csv.inc.php @@ -55,7 +55,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi $old_app = $GLOBALS['egw_info']['flags']['currentapp']; $GLOBALS['egw_info']['flags']['currentapp'] = 'addressbook'; - if ($options['selection'] == 'use_all' || $options['selection'] == 'all') { + if ($options['selection'] == 'search') { // uicontacts selection with checkbox 'use_all' $query = $GLOBALS['egw']->session->appsession('index','addressbook'); $query['num_rows'] = -1; // all @@ -63,7 +63,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi if(!array_key_exists('filter',$query)) $query['filter'] = $GLOBALS['egw_info']['user']['account_id']; $this->ui->get_rows($query,$selection,$readonlys, true); // only return the ids } - elseif ( $options['selection'] == 'all_contacts' ) { + elseif ( $options['selection'] == 'all' ) { if ($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts']) { $col_filter['account_id'] = null; }