I'm trying to add a custom field (PriorityRank_c) to the Mass Update in the Accounts module. I have made changes to add a field to the fields array and a relationship between accounts and accounts_cstm (custom fields table) in the relationship array in modules/Accounts/vardefs.php. The field still does not show up in Mass Update. Are there other changes I need to make or am I doing something wrong? I'm working with 4.0.0beta
Code:
//This is in the fields array
'PriorityRank_c' =>
array (
'name' => 'PriorityRank_c',
'vname' => 'PriorityRank__c',
'type' => 'relate',
'table' => 'accounts_cstm',
'len'=>15,
'options' => 'company_priorityrank_dom',
'dbtype' => 'enum',
'massupdate' => true,
'rname' => 'PriorityRank_c',
'id_name' => 'id',
),
//This is in the relationships array
,'accounts_cstm' => array('lhs_module'=> 'Accounts', 'lhs_table'=> 'accounts', 'lhs_key' => 'id',
'rhs_module'=> 'Accounts', 'rhs_table'=> 'accounts_cstm', 'rhs_key' => 'id_c',
'relationship_type'=>'one-to-one')
Bookmarks