Results 1 to 2 of 2

Thread: [Help]How to Override SugarBean Function

  1. #1
    blitz2190 is offline Senior Member
    Join Date
    Jul 2009
    Posts
    105

    Default [Help]How to Override SugarBean Function

    Ok i have made a change to the SugarBean.php file to achieve what i wanted to do but i know this is not upgrade safe, so my question is how would i override a function in that file from the custom folder, this is for the accounts module.

    Sugarcrm 6.0

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: [Help]How to Override SugarBean Function

    I may be wrong, but I'm pretty sure you can't upgrade-safely "override" the sugarbean class.

    That being said, there are possibly other ways of achieving what you want to do, but that would depend on what you are trying to attempt to do. If your modification is something that a logic hook and/or a new module could do, then it should be fine. If not then I'm not sure there's something you can do that would make it upgrade-safe.

    I would guess tho, if it were a function change/override to the accounts module, you could probably just write a new module that mimicked the functionality of the accounts module, and then add the customizations you need. Hopefully there's an easier way to do what you want to do, because that seems to be a bit more work than you'd want to do.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 2012-01-11, 12:04 PM
  2. how to override send_back js function
    By zaska in forum Developer Help
    Replies: 3
    Last Post: 2010-12-14, 10:08 AM
  3. Replies: 4
    Last Post: 2010-06-22, 12:22 AM
  4. Replies: 0
    Last Post: 2009-01-09, 09:58 PM
  5. listview function from sugarbean not getting call
    By zohaib in forum Developer Help
    Replies: 0
    Last Post: 2008-08-11, 06:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •