Results 1 to 8 of 8

Thread: Removing Subpanels - Is there an upgrade safe solution?

  1. #1
    aigalli is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    23

    Default Removing Subpanels - Is there an upgrade safe solution?

    There have been several threads raising the issue of removing standard subpanels from various modules. Is there anyone who has managed to achieve this with the solution being upgrade safe? The administrative overhead of re-editing the layoutdefs.ext.php files after each rebuild etc. (they are overwritten on each occasion) is unacceptable.

    Your help would be appreciated.

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

    Default Re: Removing Subpanels - Is there an upgrade safe solution?

    Quote Originally Posted by aigalli
    There have been several threads raising the issue of removing standard subpanels from various modules. Is there anyone who has managed to achieve this with the solution being upgrade safe? The administrative overhead of re-editing the layoutdefs.ext.php files after each rebuild etc. (they are overwritten on each occasion) is unacceptable.

    Your help would be appreciated.

    I edit custom/Extension/modules/<MODULE>/Ext/Layoutdefs/custom.php

    unset($layout_defs['Accounts']['subpanel_setup']['bugs']);

    The above code removes the bugs subpanel from Accounts

  3. #3
    aigalli is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    23

    Default Re: Removing Subpanels - Is there an upgrade safe solution?

    Thanks for the info - I followed your approach but found that although the subpanels were removed the following warning message appears before the listing of the remaining subpanels:

    Notice: Undefined index: module in /var/www/html/SugarCEdev-Full-5.0.0c/include/SubPanel/SubPanelDefinitions.php on line 340

    Can you throw any light on this?

    ps At least this approach appears to be upgrade safe - I just need to get to the bottom of the warning message.

    Thanks

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

    Default Re: Removing Subpanels - Is there an upgrade safe solution?

    Quote Originally Posted by aigalli
    Thanks for the info - I followed your approach but found that although the subpanels were removed the following warning message appears before the listing of the remaining subpanels:

    Notice: Undefined index: module in /var/www/html/SugarCEdev-Full-5.0.0c/include/SubPanel/SubPanelDefinitions.php on line 340

    Can you throw any light on this?

    ps At least this approach appears to be upgrade safe - I just need to get to the bottom of the warning message.

    Thanks
    I don't get a warning

    Have you tried a quick repair?

  5. #5
    aigalli is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    23

    Default Re: Removing Subpanels - Is there an upgrade safe solution?

    Yes, I performed a Quick Repair.

    What I have noticed is that I have several (4) _override.xxx.php files for subpanel layouts reside in the <sugar-root>custom/Extension/modules/<Module Name>/Ext/Layoutdefs/ directory. When I create my custom.php it appears that these _override files are causing the warning messages.

    I should add that these _override.xxx.php files appear to be auto-generated each time a rebuild etc is run.

    Not sure why they are being generated.

    Any guidance would be appreciated.

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

    Default Re: Removing Subpanels - Is there an upgrade safe solution?

    Quote Originally Posted by aigalli
    Yes, I performed a Quick Repair.

    What I have noticed is that I have several (4) _override.xxx.php files for subpanel layouts reside in the <sugar-root>custom/Extension/modules/<Module Name>/Ext/Layoutdefs/ directory. When I create my custom.php it appears that these _override files are causing the warning messages.

    I should add that these _override.xxx.php files appear to be auto-generated each time a rebuild etc is run.

    Not sure why they are being generated.

    Any guidance would be appreciated.
    I would try deleting those files and doing another repair

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

    Default Re: Removing Subpanels - Is there an upgrade safe solution?

    Those files actually serve as the basis for 1 custom file, containing all the contents of those files.

    You should turn off notices. It's the Sugar way. There are lots of notices in the application, I can't grasp why you left it enabled??
    Developers go here
    Businesses go there (Dutch)

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

  8. #8
    aigalli is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    23

    Default Re: Removing Subpanels - Is there an upgrade safe solution?

    Many thanks,

    I deleted the _override.xxx.php files and created my custom.php file with the required unset commands. Performed Quick Repair & Rebuild and all is working as desired in an upgrade safe manner.

    Oh yes! Notices have been turned OFF in the php.ini file.

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: 2012-04-24, 04:59 PM
  2. upgrade safe subpanels
    By mikesolomon in forum Developer Help
    Replies: 11
    Last Post: 2011-03-01, 11:07 AM
  3. 4.5.1 - Database Upgrade - Potential Solution
    By stuarth in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2010-01-13, 09:28 PM
  4. subpanels module upgrade not installing
    By markoshust in forum Help
    Replies: 1
    Last Post: 2008-02-27, 06:31 PM
  5. Upgrade process review - 2.0 to 4.0
    By kimvette in forum General Discussion
    Replies: 2
    Last Post: 2007-05-22, 06:18 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
  •