sugar crm custom package navigation issue

I have created a package in sugar 7.2.0.0. I have installed it on sugar 7.5.0.0. It is working fine over there. But when I install it in sugar 7.7.0.0 the package's navigation is pointing to some different URL's.

In Sugar 7.5 menu is like http://localhost/SugarPro7/#bwc/index.php?module=module_name&action=action_name

In sugar 7.7 menu is like http://localhost/SugarPro7/#module_name/action_name

When in sugar 7.7, I manually type URL like that of sugar 7.5 it works fine.

Any help will be appreciated.

Parents
  • Hi Atif,

    It looks like your package contains some bwc modules. BWC means Backward Compatibility modules.

    We have a documentation about BWC: https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.5/Backward_Compatibility/Introduction…

    Let me know if this helps.

    Best Regards

    Tevfik Tümer

    Developer Support Engineer

  • Hi Tevfik,

    Thanks for the response.

    The sugar instance I have installed is already in backward compatibility mode.

    Every default module in the instance is following the BWC mode.

    Even admin link is like this; http://localhost/SugarPro7/#bwc/index.php?module=Administration&action=index

    But the custom package (it has only one module) is not following BWC mode.

    This is the navigation URL the custom module is pointing to; http://localhost/SugarPro7/#qbo_QuickBookSync/admin_menu

    Following is the code that generates the LINK (it lies in a file placed at  C:\xampp\htdocs\SugarPro7\custom\modules\Administration\Ext\Administration by the package installer)

    $admin_option_defs=array();

    $admin_option_defs['Administration']['qbo_QuickBookSync']= array(

        ' qbo_QuickBookSync ',

        'LBL_qbo_QuickBookSync_CONFIG_TITLE',

        'LBL_qbo_QuickBookSync_CONFIG_DESC',

        './index.php?module=qbo_QuickBookSync&action=admin_menu'

        );

        $admin_group_header[]= array('LBL_qbo_QuickBookSync_CONFIG_HEADER','',false,$admin_option_defs, '');

        $config_categories[] = ' qbo_QuickBookSync ';

Reply
  • Hi Tevfik,

    Thanks for the response.

    The sugar instance I have installed is already in backward compatibility mode.

    Every default module in the instance is following the BWC mode.

    Even admin link is like this; http://localhost/SugarPro7/#bwc/index.php?module=Administration&action=index

    But the custom package (it has only one module) is not following BWC mode.

    This is the navigation URL the custom module is pointing to; http://localhost/SugarPro7/#qbo_QuickBookSync/admin_menu

    Following is the code that generates the LINK (it lies in a file placed at  C:\xampp\htdocs\SugarPro7\custom\modules\Administration\Ext\Administration by the package installer)

    $admin_option_defs=array();

    $admin_option_defs['Administration']['qbo_QuickBookSync']= array(

        ' qbo_QuickBookSync ',

        'LBL_qbo_QuickBookSync_CONFIG_TITLE',

        'LBL_qbo_QuickBookSync_CONFIG_DESC',

        './index.php?module=qbo_QuickBookSync&action=admin_menu'

        );

        $admin_group_header[]= array('LBL_qbo_QuickBookSync_CONFIG_HEADER','',false,$admin_option_defs, '');

        $config_categories[] = ' qbo_QuickBookSync ';

Children