From 867b0f534316fd096810dc483b5c7e9ab717412e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 9 Dec 2011 17:49:05 +0000 Subject: [PATCH] Set currentapp to addressbook so existing categories are properly detected --- addressbook/inc/class.addressbook_import_contacts_csv.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php index 6ff8527bf2..a2b8581598 100644 --- a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php @@ -113,6 +113,9 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi // dry run? $this->dry_run = isset( $_definition->plugin_options['dry_run'] ) ? $_definition->plugin_options['dry_run'] : false; + // Needed for categories to work right + $GLOBALS['egw_info']['flags']['currentapp'] = 'addressbook'; + // fetch the addressbook bo $this->bocontacts = new addressbook_bo();