Results 1 to 6 of 6

Thread: How to make modules/Accounts/Account.php

  1. #1
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default How to make modules/Accounts/Account.php

    Hi

    I modified modules/Accounts/Account.php for doing some customizations. But this files gets overwritten while

    upgrading to a newer version of sugarcrm. How can I make this file upgrade safe. Please help me.

    Thanks
    Prajeesh

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: How to make modules/Accounts/Account.php

    You should store your customised account.php in custom/modules/accounts

  3. #3
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default Re: How to make modules/Accounts/Account.php

    Hi salesagility,

    I had tried this . But code inside modules/Account/Account.php was stil getting called instead of custom/modules/Account/Account.php.


    Thanks,
    Prajeesh
    Last edited by prajeesh; 2009-09-07 at 12:37 PM.

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: How to make modules/Accounts/Account.php

    What is that you changed in Accounts.php? ... what were you trying to do?

  5. #5
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default Re: How to make modules/Accounts/Account.php

    Hi

    Basically I wanted to modify the save() function of SugarBean.php and DyanmicField.php for the module 'Account' . So To do those changes I created AccountSugarBean.php and AccountDynamicField.php and then I modified Account.php to use these classes instead of SugarBean.php and DynamicField.php. But when we do the upgradation Account.php is getting overwitten As result Account.php will again point to SugarBean and DynamicField instead of AccountSugarBean and AccountDynamicField.


    Thanking you for the effort.
    Prajeesh

  6. #6
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: How to make modules/Accounts/Account.php

    This is the nature of software I suppose.

    In any case, you will have to reimplement your hacks after an upgrade.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do I make a Drop down available to multiple modules
    By totallypos in forum General Discussion
    Replies: 2
    Last Post: 2008-09-05, 09:50 PM
  2. want to make relation between two modules
    By shobs in forum Developer Help
    Replies: 1
    Last Post: 2008-09-05, 11:06 AM
  3. How do I make accounts private?
    By pkirk25 in forum General Discussion
    Replies: 2
    Last Post: 2005-06-16, 11:00 AM
  4. posibility to make new modules
    By lalo in forum Feature Requests
    Replies: 0
    Last Post: 2005-03-01, 09:51 PM
  5. Disable accounts and make them disappear by default
    By Eiken in forum Feature Requests
    Replies: 0
    Last Post: 2005-01-15, 12:04 PM

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
  •