AnsweredAssumed Answered

Why is label not showing correctly in Available Fields in Report Module correctly?

Question asked by Amy Cox on Apr 13, 2015
Latest reply on Apr 17, 2015 by Rolustech Rolustech


I have created the following field in Sugar under ./custom/Extention/modules/Contacts/Ext/Vardefs/jccc_email_types.php

$dictionary['Contact']['fields']['business_email_c'] = array(
     'name' => 'business_email_c',
     'label' => 'LBL_BUSINESS_EMAIL_C',
     'type' => 'varchar',
     'module' => 'Contacts',
     'help' => 'Field is automatically filled with the Business Address by the JCCC_EmailAddress classes',
     'comment' => 'Business Address',
     'default_value' => '',
     'max_size' => 255,
     'required' => false, // true or false
     'reportable' => true, // true or false
//    'audited' => false, // true or false
     'audited' => true, // true or false
     'importable' => 'false', // 'true', 'false', 'required'
     'duplicate_merge' => false, // true or false
     'source' => 'custom_fields'
);

I created the label in ./custom/Extension/modules/Contacts/Ext/Language/en_us.EmailTypes.php
?php
// created: 2015-04-13 20:50:20
$mod_strings['LBL_BUSINESS_EMAIL_C'] = 'Business Email';
$mod_strings['LBL_PERSONAL_EMAIL_C'] = 'Personal Email';
$mod_strings['LBL_SCHOOL_EMAIL_C'] = 'School Email';
?>

In reports it is showing business_email_c and not 'Business Email'. How do I fix this?

Outcomes