Results 1 to 6 of 6

Thread: Customization disappears after we deploy the package using Module builder

  1. #1
    nnarayanan is offline Member
    Join Date
    Nov 2008
    Posts
    13

    Question Customization disappears after we deploy the package using Module builder

    Hi,

    I have created a module using module builder and added my customizations under custom/modules/mymodule folder. Later I wanted to add one more field for this module hence I have openned the module builder and added this field. Now I have deployed the package.

    During deployment, SugarCRM has deleted all the contents of custom/modules/mymodule folder and created on this own. Hence I lost my customization. Luckily I had kept the php files open in my editor and was able to save elsewhere.

    I think this may be a bug. Could you please clarify?

    Regards
    Narayanan

  2. #2
    gazza73's Avatar
    gazza73 is offline Sugar Community Member
    Join Date
    Apr 2009
    Location
    Outer suburbs east of Melbourne, VIC, Australia
    Posts
    49

    Default Re: Customization disappears after we deploy the package using Module builder

    Getting the same issue when clicking DEPLOY on my own packesgs in Module Builder

    v5.2.0c Community Edition
    Xubuntu

    The main worry, is all the LOGIC HOOKS php code that is tedious to develop if doing complex table manipulation.

    What I see as strange, is that if you create a MYPACKAGE
    and inside that you create some "mymodule"...... then becuase these are not standard sugarcrm modules, they should end up in .../custom/module/MYPACKAGE_mymodule/.....

    But when you create a LOGIC HOOK, it creates a messed up version as a subfolder called: .../custom/modules/Mymodule/.... (with a capital "M")......

    You have to COPY the logic hooks from that bad location to the proper one above, but the proper one gets cleared out when you do a DEPLOY!

    Still looking at whether I should be putting my work somewhere else so that it is UPGRADE SAFE as well as DEPLOYABLE.....


    I sees some talk of .../custom/modulebuilder/packages/MYPACKAGE/......
    and .../custom/modulebuilder/builds/MYPACKAGE/.....
    but haven't had a chance yet, to reload another instance using Module Builder-> Publish and then Module Loader on another machine.......

    But I sure keep second copies of all my Logic Hooks in /var/www/backups/...... so that they are to one side of the /var/www/sugarcrm/..... area - otherwise DEPLOY wipes out man-months of code!

    Gaz
    Gazza!

    Alchester Business Systems
    Int'l Ph: 61-3-97626293 Australia.
    “We take care of everything!"

    Xubuntu v8.10
    SugarCRM CE v5.2f
    Linux 2.6.27-7 Apache2 v2.2.9 Mysql v14.12 distrib: 5.0.67 Php5.2.6-2

  3. #3
    gazza73's Avatar
    gazza73 is offline Sugar Community Member
    Join Date
    Apr 2009
    Location
    Outer suburbs east of Melbourne, VIC, Australia
    Posts
    49

    Default Re: Customization disappears after we deploy the package using Module builder

    CE V5.20f on Ubuntu 8.10
    logic_hooks.php gets deleted

    Today we upgraded CE v5.20c to v5.20f to see if that improved the problem. I didn't.

    But the pre-flight check cleaned up some folder ownership matters, and the LOG file issues regarding schedululing errors have cleaned up too. So that has made the day worthwhile.

    Unfortunately, the DEPLOY function of Module Builder still wipes out all my logic hooks from the .../custom/module/MYPACKAGE_mymodule/... folder. So we we're no further advanced.

    It seems the only obstacle I have is:

    a) finding a way to pass the $event parameter to some php code, that I could consider loading into mymodule.php. (but that's not a nice development approach)
    b) But I'd rather find out what is the cuase of the logic_hooks.php file getting deleted by the Module Builder Deploy function.

    Any clues from the forum?

    Gary
    Gazza!

    Alchester Business Systems
    Int'l Ph: 61-3-97626293 Australia.
    “We take care of everything!"

    Xubuntu v8.10
    SugarCRM CE v5.2f
    Linux 2.6.27-7 Apache2 v2.2.9 Mysql v14.12 distrib: 5.0.67 Php5.2.6-2

  4. #4
    dompirrota is offline Member
    Join Date
    May 2009
    Posts
    14

    Default Re: Customization disappears after we deploy the package using Module builder

    I have the same problem anybody found why it happens and how to make a workaround, without having to restaure manually after each deploy?

    PiR

  5. #5
    jeffreyfrog is offline Junior Member
    Join Date
    Sep 2009
    Posts
    1

    Default Re: Customization disappears after we deploy the package using Module builder

    I have link here that it will help you very well for custom builder, hope this one could help you soon. scottsdale custom builder

  6. #6
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Customization disappears after we deploy the package using Module builder

    Once you deploy stick with Studio. Module Builder should be used only when initially creating your custom module. After that, it's safest to use Studio for any changes. This will ensure that any customizations will remain.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Module builder not completing relationship setup?
    By purplewave in forum Developer Help
    Replies: 6
    Last Post: 2008-09-08, 12:12 PM
  2. Replies: 0
    Last Post: 2008-05-16, 11:29 PM
  3. Replies: 0
    Last Post: 2007-11-21, 12:08 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
  •