Results 1 to 3 of 3

Thread: get_subpanel_data

  1. #1
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default get_subpanel_data

    I am having a problem with a sub menu changing every time i make a rebuild of the CRM

    I was able to find in this file custom/modules/Leads/Ext/Layoutdefs/layoutdefs.ext.php
    There is

    PHP Code:
    $layout_defs["Leads"]["subpanel_setup"]["phone_phones_leads"] = array (
      
    'order' => 100,
      
    'module' => 'phone_Phones',
      
    'subpanel_name' => 'default',
      
    'sort_order' => 'asc',
      
    'sort_by' => 'id',
      
    'title_key' => 'LBL_PHONE_PHONES_LEADS_FROM_PHONE_PHONES_TITLE',
      
    'get_subpanel_data' => 'leads_phone_phones',
      
    'top_buttons' => 
      array (
        
    => 
        array (
          
    'widget_class' => 'SubPanelTopButtonQuickCreate',
        ),
        
    => 
        array (
          
    'widget_class' => 'SubPanelTopSelectButton',
          
    'mode' => 'MultiSelect',
        ),
      ),
    ); 
    the problem is that 'get_subpanel_data' => 'leads_phone_phones',
    changes to 'get_subpanel_data' => 'phone_phones_leads',

    but i don't know where is that inheriting from and i was wondering if any one could help me with this

  2. #2
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: get_subpanel_data

    look in custom/Extension/modules/Leads/Ext/Layoutdefs/ some file here will hold definition for that subpanel
    CRM Software Engineer
    Eontek - www.eontek.rs

  3. #3
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default Re: get_subpanel_data

    the problem is that its loading the wrong definition

    What it loads is
    'get_subpanel_data' => 'leads_phone_phones',
    it needs to be
    'get_subpanel_data' => 'phone_phones_leads',

Thread Information

Users Browsing this Thread

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

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
  •