Set currentapp to addressbook so existing categories are properly detected

This commit is contained in:
Nathan Gray 2011-12-09 17:49:05 +00:00
parent 68a970f5d6
commit 867b0f5343

View File

@ -113,6 +113,9 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi
// dry run? // dry run?
$this->dry_run = isset( $_definition->plugin_options['dry_run'] ) ? $_definition->plugin_options['dry_run'] : false; $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 // fetch the addressbook bo
$this->bocontacts = new addressbook_bo(); $this->bocontacts = new addressbook_bo();