Use global categories too

This commit is contained in:
Nathan Gray 2011-03-15 15:37:52 +00:00
parent 62a856b1c9
commit 184117b0ec

View File

@ -67,7 +67,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
foreach($options['explode_multiselects'] as $field => $explode) { foreach($options['explode_multiselects'] as $field => $explode) {
switch($explode['explode']) { switch($explode['explode']) {
case self::MAIN_CATS: case self::MAIN_CATS:
$cats = $cat_obj->return_array('mains', 0, false); $cats = $cat_obj->return_array('mains', 0, false,'','ASC','',true);
foreach($cats as $settings) { foreach($cats as $settings) {
$additional_fields[$field][$settings['id']] = array( $additional_fields[$field][$settings['id']] = array(
'count' => 0, 'count' => 0,