Results 1 to 4 of 4

Thread: changing module in module builder overwriting changes

  1. #1
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default changing module in module builder overwriting changes

    I created a module using the module builder

    Then I created a one to many relationship

    To do this I edited

    modules/<MODULE>/vardefs.php

    Later I decided to add an additional field so I went back into the module builder and added the field

    I then deployed the changed module

    This overwrote my changes to vardefs.php & en_us.lang.php

    I then tried putting my vardef changes into custom/modules/<MODULE>/vardefs.php but that didnt work so I had to reedit the original

    How do I get round this problem?

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: changing module in module builder overwriting changes

    create a file called custom\Extension\modules\[the_module]\Ext\Vardefs\custom.php

    Then go to Admin->Repair->Quick Repair and Rebuild. This step will create a file called custom\modules\[the_module]\Ext\Vardefs\vardefs.ext.php.
    You don't want to directly create the vardefs.ext.php file as that is an automatically generated file created by Sugar. The contents of the vardefs.ext.php file is the contatenation of all files in the custom\Extension\modules\[the_module]\Ext\Vardefs\ directory.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: changing module in module builder overwriting changes

    Quote Originally Posted by clint
    create a file called custom\Extension\modules\[the_module]\Ext\Vardefs\custom.php

    Then go to Admin->Repair->Quick Repair and Rebuild. This step will create a file called custom\modules\[the_module]\Ext\Vardefs\vardefs.ext.php.
    You don't want to directly create the vardefs.ext.php file as that is an automatically generated file created by Sugar. The contents of the vardefs.ext.php file is the contatenation of all files in the custom\Extension\modules\[the_module]\Ext\Vardefs\ directory.
    Thanks - that worked

  4. #4
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: changing module in module builder overwriting changes

    Can I do the same thing with <module>/metadata/subpanels/default.php?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2010-03-16, 12:46 PM
  2. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  3. Module builder not completing relationship setup?
    By purplewave in forum Developer Help
    Replies: 6
    Last Post: 2008-09-08, 12:12 PM
  4. Module Builder?
    By elvispresley99 in forum Help
    Replies: 0
    Last Post: 2006-09-24, 06:10 PM
  5. Replies: 1
    Last Post: 2006-09-11, 03:38 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
  •