From ab8f7885c925c4763eacc9c08d8582987df49754 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 12 Nov 2013 18:12:07 +0000 Subject: [PATCH] Fix export with type filter --- 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 695d0e04c1..275aa4a5be 100644 --- a/addressbook/inc/class.addressbook_export_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_export_contacts_csv.inc.php @@ -100,8 +100,8 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi } continue; } - - if(strpos($field, '#') !== 0) + // Custom fields & listed are not filtered with contact_ prefix + if(strpos($field, '#') !== 0 && !in_array($field, array('tid'))) { $field = 'contact_'.$field; }