Results 1 to 4 of 4

Thread: Remove relationship from deployed module

  1. #1
    Linnane is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    64

    Default Remove relationship from deployed module

    Hi,

    I made my own package/modules and deployed it. I then made several changes to it in the studio ... therefore the vesion in module builder is out of date, yes?

    Now I want to remove a relationship I created within the package - but am not given the option (delete button does not display.

    How can I do this (remore the relationship) ? Is there code or db fields and table that I can edit/remove?

    Regards
    Alan.

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Remove relationship from deployed module

    The safest way to remove a relationship is just unseting its subpanel, like this exemple:

    File: custom/modules/Accounts/Ext/Layoutdefs/layoutdefs.ext.php
    Code:
    <?php
    unset($layout_defs['Accounts']['subpanel_setup']['leads']);
    ?>
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    Linnane is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    64

    Default Re: Remove relationship from deployed module

    Thanks for your reply ... just about to get to it now ... new resolutions etc

    anyway should I be concerned with the line uptop?

    <?php
    //WARNING: The contents of this file are auto-generated

    Are my changes going to be lost ... every time I modify a relation on the Accounts Module?

    Regards
    Alan.

  4. #4
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Remove relationship from deployed module

    Yes you are right.
    The changes done under custom/modules/<module_name>/Layoutdefs/ are lost because they are auto generated by codes unde Extansion.
    The correct place to address this change is:
    custom/Extension/modules/Accounts/Ext/Layoutdefs/<your_custom_file>.php
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2011-07-06, 10:07 AM
  2. Module changes are not saved and deployed
    By MateoLeFou in forum Help
    Replies: 5
    Last Post: 2009-05-28, 02:32 PM
  3. Remove relationship from a module
    By edanb in forum Help
    Replies: 4
    Last Post: 2009-03-30, 01:00 PM
  4. Removing a Deployed Module - Help!
    By Akael.d2 in forum Developer Help
    Replies: 1
    Last Post: 2008-05-16, 11:24 PM
  5. ACL problem when a new module have deployed again
    By wangpro in forum Developer Help
    Replies: 4
    Last Post: 2008-04-30, 09:27 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
  •