Security Group subpanel not showing in main modules

Hello Everyone,

Security Groups subpanel is not showing in main modules such as Accounts, the relationship and the subpanel are both appearing in studio, but not in the detail view of the account. When I checked my log I found this :

Bad subpanel definition, it has incorrect value for get_subpanel_data property securitygroups.

Do you have any explanation about this ?

I am using Sugar Version 6.5.24

Thank you !

  • Hi Hachim IDRISSI 

    This error happen when SugarCRM can not load the relationship from subpanel definition, so there is any misconfiguration on either link field or relationship itself.

    Can you kindly share the vardefs section of link fields and relationship between Accounts and SecurityGroups?

    Kind regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Hello André Lopes, 

    Thank you for your quick answer, here is what I found :

    >> In modules/Accounts/metadata/subpaneldefs.php :

    'securitygroups' => array(
    'top_buttons' => array(array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'SecurityGroups', 'mode' => 'MultiSelect'),),
    'order' => 900,
    'sort_by' => 'name',
    'sort_order' => 'asc',
    'module' => 'SecurityGroups',
    'refresh_page' => 1,
    'subpanel_name' => 'default',
    'get_subpanel_data' => 'SecurityGroups',
    'add_subpanel_data' => 'securitygroup_id',

    I didn't find any vardefs for this !!

  • I find a solution :

    In "modules/Accounts/vardefs.php" for unknown reason it missed "security_groups" declaration in this line of code :

    VardefManager::createVardef('Accounts','Account', array('default', 'assignable','security_groups',