Results 1 to 4 of 4

Thread: Related Items Duplicating in Subpanel

  1. #1
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Related Items Duplicating in Subpanel

    Sugarcrm 5.0.0e
    I have a custom module that is related to my accounts module for some reason there are certain accounts where every entity in my custom module is displayed twice in the subpanel.
    For instance, in the database, 51 objects come up as related to a specific account. The subpanel shows 102 objects, with each one obviously duplicated. The duplicate links both return the same object and work completely normally (barring the fact they're duplicated).
    Repairing relationships does not solve this problem.

    Any ideas on where to start looking?

  2. #2
    perevav is offline Junior Member
    Join Date
    Apr 2008
    Posts
    1

    Default Re: Related Items Duplicating in Subpanel

    Same problem in 5.0.0.d,

    Custom module 'my_custommodule' has many-to-many relationship with standard 'documents' module. The relationship was created in studio. SugarCRM creates duplicating records in 'my_custommodule_documents' table with the same my_custommodule_ida and documents_idb fields values for certain 'my_custommodule' records.
    Documents were created from the docuemnts subpanel displayed on the my_custommodule detailed view.

    Workaround solution is to delete duplicating records in 'my_custommodule_documents' table, but it's not so nice...

  3. #3
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Re: Related Items Duplicating in Subpanel

    Yea... I've deleted the extra relations in the database and it's all back to normal, but I really would like to know what is duplicating them.

  4. #4
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Re: Related Items Duplicating in Subpanel

    I've traced it down to the edit button in the subpanel.
    Clicking on the item, then going to the edit menu is harmless.
    Clicking the edit button in the subpanel duplicates the relation.

    For now I have removed the edit button from the subpanel, but I am looking for an actual fix.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HOWTO - Hack Sugar to support related module info in subpanel (one-many)
    By kenneth.thorman in forum Developer Tutorials
    Replies: 35
    Last Post: 2008-06-10, 07:51 AM
  2. subpanel shows all the data not the related data
    By snehalsapar in forum Developer Help
    Replies: 5
    Last Post: 2008-05-23, 08:22 PM
  3. subpanel issues for a related field
    By ptemplin7 in forum Help
    Replies: 6
    Last Post: 2008-03-25, 10:13 AM
  4. Replies: 1
    Last Post: 2006-11-20, 07:06 PM
  5. Replies: 0
    Last Post: 2006-04-19, 04:37 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
  •