Results 1 to 1 of 1

Thread: subpanels doesn't display layout_defs

  1. #1
    guillaume.autier is offline Junior Member
    Join Date
    May 2008
    Posts
    1

    Exclamation subpanels doesn't display layout_defs

    OS : Debian
    MySQL version 5.0.32
    Apache version 2.2.3

    SUGARCRM OS 4.5.1f

    Hi every one,

    I have a problem i can't understand.

    In account view i don't want to see activities and history subpanels.

    I changed the file modules/accounts/ layout_defs.php as follow :

    Code:
    $layout_defs['Accounts'] = array(
    	// list of what Subpanels to show in the DetailView 
    	'subpanel_setup' => array(
    	'Contacts' => array(
    			'order' => 30,
    			'module' => 'Contacts',
    			'sort_order' => 'asc',
    			'sort_by' => 'last_name, first_name',
    			'subpanel_name' => 'ForAccounts',
    			'get_subpanel_data' => 'contacts',
    			'add_subpanel_data' => 'contact_id',
    			'title_key' => 'LBL_CONTACTS_SUBPANEL_TITLE',
    			'top_buttons' => array(
    				array('widget_class' => 'SubPanelTopCreateAccountNameButton'),
    				array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
    			),
    		),
    		
    	'Opportunities' => array(
    			'order' => 40,
    			'module' => 'Opportunities',
    			'subpanel_name' => 'ForAccounts',
    			'sort_order' => 'desc',
    			'sort_by' => 'date_closed',
    			'get_subpanel_data' => 'opportunities',
    			'add_subpanel_data' => 'opportunity_id',
    			'title_key' => 'LBL_OPPORTUNITIES_SUBPANEL_TITLE',
    			'top_buttons' => array(
    				array('widget_class' => 'SubPanelTopButtonQuickCreate'),
    				array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
    			),
    		),	
    				
    	),	
    );
    I receive this error message in account edit view :

    Notice: Undefined index: activities in var\www\vbcrm\include\SubPanel\SubPanelDefinitions .php on line 330

    Warning: asubpanel(modules//subpanels/.php): failed to open stream: No such file or directory in var\www\vbcrm\include\SubPanel\SubPanelDefinitions .php on line 66

    Fatal error: asubpanel(): Failed opening required 'modules//subpanels/.php' ) in var\www\vbcrm\include\SubPanel\SubPanelDefinitions .php on line 66


    I think he have some template or cache data or mabye a code.
    If i add activities and history in layout_defs this works BUT i do not want those subpanels....
    I tried to change the order nulber with no results ...

    I'm working since 3 days on that issue ... i don't understand what's wrong
    Please help !
    Last edited by guillaume.autier; 2008-05-14 at 07:55 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2008-04-11, 06:02 PM
  2. Display of Subpanels in Contacts
    By jwallis in forum Help
    Replies: 5
    Last Post: 2007-06-26, 03:02 PM
  3. tabs/buttons to display subpanels.
    By sugarcare in forum Help
    Replies: 6
    Last Post: 2006-07-28, 11:52 AM
  4. Subpanels Tabs for Sugar Professional
    By 3v3ntiq in forum Feature Requests
    Replies: 0
    Last Post: 2006-02-20, 04:26 PM
  5. Replies: 0
    Last Post: 2006-01-29, 12:34 AM

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
  •