From c51bf772c890b706dc7169bdbe1b108b180d0bc7 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 25 Apr 2013 09:46:46 +0000 Subject: [PATCH] * Addressbook/Export: fix fatal error regarding order by for postgresql on addressbook export --- .../inc/class.addressbook_export_contacts_csv.inc.php | 5 +++-- 1 file changed, 3 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 b6c5ed5e27..1ce3d4a64b 100644 --- a/addressbook/inc/class.addressbook_export_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_export_contacts_csv.inc.php @@ -60,6 +60,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi $query = $GLOBALS['egw']->session->appsession('index','addressbook'); $query['num_rows'] = -1; // all $query['csv_export'] = true; // so get_rows method _can_ produce different content or not store state in the session + $query['order'] = 'contact_id'; 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 } @@ -99,7 +100,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi } continue; } - + if(strpos($field, '#') !== 0) { $field = 'contact_'.$field; @@ -379,7 +380,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi } } - + protected function get_selects() { $this->selects = array(