Results 1 to 4 of 4

Thread: Missing relationship data from a custom module

  1. #1
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Missing relationship data from a custom module

    Hi all,

    I am having some difficulty with a relationship between the contacts module and a custom module that I have created. Things had been working fine, but now the contacts sub panel doesn't show up. A sub-panel for a second relationship with another customer module seems to work fine, so I am somewhat confused. I have tried running repairs on both the database and the relationships with no luck. Looking in the Layoutdefs.php file it looks like the relationships declaration is missing. I have tried to add it back in by hand, but this just breaks all of the relationships. Anyone have any thoughts as to what the problem is here??

    Thanks

    Version 5.0.0f (Build 3338) running on Linux with Mysql

  2. #2
    jsagar's Avatar
    jsagar is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad,India
    Posts
    242

    Default Re: Missing relationship data from a custom module

    hi,
    can you tell me, more specific that, which file you changed...
    it may be the verdefs chnages or in upgradesafe custom/ext/modules/verdefs/
    or any thing else ,,,,
    Best Regards
    ---------------------------------------
    Jaydeepsinh Sagar

  3. #3
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: Missing relationship data from a custom module

    I tried manually adding the contacts declaration array

    $layout_defs["CP_content_providers"]["subpanel_setup"]["contacts"] = array (
    'order' => 100,
    'module' => 'Contacts',
    'subpanel_name' => 'ForContacts',
    'get_subpanel_data' => 'contacts',
    'add_subpanel_data' => 'Contacts_idb',
    'title_key' => 'lbl_contacts',
    );



    to /SugarCE-Full-5.0.0b/custom/modules/CP_content_providers/Ext/Layoutdefs/layoutdefs.ext.php

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Missing relationship data from a custom module

    Quote Originally Posted by Nisbet
    I tried manually adding the contacts declaration array

    $layout_defs["CP_content_providers"]["subpanel_setup"]["contacts"] = array (
    'order' => 100,
    'module' => 'Contacts',
    'subpanel_name' => 'ForContacts',
    'get_subpanel_data' => 'contacts',
    'add_subpanel_data' => 'Contacts_idb',
    'title_key' => 'lbl_contacts',
    );



    to /SugarCE-Full-5.0.0b/custom/modules/CP_content_providers/Ext/Layoutdefs/layoutdefs.ext.php
    Hi Nisbet

    You need to add the contacts declaration array into custom/Extension/modules/CP_content_providers/Ext/Layoutdefs/layoutdefs.ext.php
    Into custom/Extension/modules/CP_content_providers/Ext/Vardefs/vardefs.ext.php you need to define a new field contacts whose type is link and the relationship attribute points to a new relationship, like cp_content_providers_contacts. This new relationship you need to define into extended CP_content_providers vardefs.
    After that you need to go to Admin -> Repair -> Rebuild Extension / Rebuild Relationship

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

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: 2008-07-03, 12:14 PM
  2. problem step 7 version SugarOS-4.5.0f
    By lucia in forum Help
    Replies: 1
    Last Post: 2006-12-27, 01:21 PM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. Repair Error
    By Ericmuc in forum Downloads
    Replies: 1
    Last Post: 2005-11-13, 04:41 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
  •