Hi, I've been trying to activate the Leads subpanel in the Campaign module and it just won't work.

I have put this in the /modules/campaigns/metadata/subpaneldefs.php:

'leads' => array(
'order' => 5,
'module' => 'Leads',
'sort_order' => 'asc',
'sort_by' => 'last_name, first_name',
'subpanel_name' => 'default',
'get_subpanel_data' => 'leads',
'add_subpanel_data' => 'lead_id',
'title_key' => 'LBL_LEADS_SUBPANEL_TITLE',
),

And I also added made sure this was in the /modules/campaigns/vardefs.php:

'leads'=> array (
'name' => 'leads',
'type' => 'link',
'relationship' => 'campaign_leads',
'module'=>'Leads',
'bean_name'=>'Lead',
'source'=>'non-db',
'vname' => 'LBL_LEADS',
),

and in the relationships array:

'campaign_leads' => array('lhs_module'=> 'Campaigns', 'lhs_table'=> 'campaigns', 'lhs_key' => 'id',
'rhs_module'=> 'Leads', 'rhs_table'=> 'leads', 'rhs_key' => 'campaign_id',
'relationship_type'=>'one-to-many'),

From what I gathered, the subpanel should now appear, but it doesn't...

Someone have a clue ?

Thanks in advance !