How to extend bean functions in 7.2?

I'm using SugarCRM 7.2. I have written some functions directly on modules/Products/Product.php. But this is not an upgrade safe manner. So can anyone please help me on how can I move those functions to custom folder? Previously I've done it through controller.php but I'm not very much confident in Sugar 7.2 can anyone help me out please
Parents
  • Hi, I have a similar problem. I have to replace the set_notification_body() method in the Meeting class.

    No cache is running and I tried it

    I added following to custom/application/Ext/Include/modules.ext.php (indirect by using quick repare ...):

    $beanFiles['Meeting'] = 'custom/modules/Meetings/MeetingCustom.php';
    $beanList['Meeting'] = 'MeetingCustom';
    The MeetingCustom class is loaded, but not used, when I call "Send invitation": sugarcrm/data/SugarBean.php(2223): Meeting->set_notification_body(Object(XTemplate); (from exception trace).

    I tried also:
    $beanFiles['Meeting'] = 'custom/modules/Meetings/MeetingCustom.php';
    $beanList['MeetingCustom'] = 'Meeting';
    and

    $beanFiles['MeetingCustom'] = 'custom/modules/Meetings/MeetingCustom.php';
    $beanList['MeetingCustom'] = 'MeetingCustom';

    Nothing works.
Reply
  • Hi, I have a similar problem. I have to replace the set_notification_body() method in the Meeting class.

    No cache is running and I tried it

    I added following to custom/application/Ext/Include/modules.ext.php (indirect by using quick repare ...):

    $beanFiles['Meeting'] = 'custom/modules/Meetings/MeetingCustom.php';
    $beanList['Meeting'] = 'MeetingCustom';
    The MeetingCustom class is loaded, but not used, when I call "Send invitation": sugarcrm/data/SugarBean.php(2223): Meeting->set_notification_body(Object(XTemplate); (from exception trace).

    I tried also:
    $beanFiles['Meeting'] = 'custom/modules/Meetings/MeetingCustom.php';
    $beanList['MeetingCustom'] = 'Meeting';
    and

    $beanFiles['MeetingCustom'] = 'custom/modules/Meetings/MeetingCustom.php';
    $beanList['MeetingCustom'] = 'MeetingCustom';

    Nothing works.
Children
No Data