Results 1 to 4 of 4

Thread: Relationships between custom module and accounts being duplicated when edited

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

    Default Relationships between custom module and accounts being duplicated when edited

    I have an odd problem. I have a custom module that has a relationship with accounts. When ever a user selects the edit link from the subpanel on the accounts screen a new link to the object is created(i.e before editing it would say 1-10 of 301. after editing it will say 1-10 of 302, and there is a duplicate association at the end of the list). The newly created link still references the original object(same ID) , and checking the relation table I only have one entry for the association. The really odd thing is if you open the object up via the name link and edit it, everything works fine(i.e. no new relation created). When I remove the newly created relation it removes both the new and the old entries(count goes from 302 to 300). I have tried repairing the DB and rebuilding the relationships, but that doesn't seem to fix the problem. Anyone have any ideas?


    SugarOS 5.0.0f running on Gentoo Linux with MySQL 5.0.54/PHP 5.2.5-r1

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

    Default Re: Relationships between custom module and accounts being duplicated when edited

    Anyone have any ideas on this? It is causing a lot of problems for my users

  3. #3
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Relationships between custom module and accounts being duplicated when edited

    Without actually seeing the code I am afraid that noone can really help, can you post it.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  4. #4
    Billwobo is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    33

    Default Re: Relationships between custom module and accounts being duplicated when edited

    I have the same exact problem. You can check out my post:
    http://www.sugarcrm.com/forums/showthread.php?t=36565

    Same thing happens when you create a new record directly from the subpanel. You create one, and after creation, sugar counts two records. Although it doesn't create a duplicate record. That's why I think the problem resides in the "COUNT" formula of the subpanel. I have this problem with all of my custom module's subpanel.

    When you create a record from the custom module's side create panel, the subpanel doesn't count this record twice, if that can help the investigation.

    PS. I'm running Sugar CE 5.1RC on a windows XAMPP.
    PHP Version 5.2.5
    MySQL 5.0.51a
    I built these custom modules on the 5.1RC version as well.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom subpanel in the accounts module
    By jmcalderond in forum General Discussion
    Replies: 0
    Last Post: 2008-05-30, 09:53 PM
  2. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  3. Sub-panel Relationships - Custom => Accounts
    By rustinp77 in forum Developer Help
    Replies: 2
    Last Post: 2007-08-17, 02:45 AM
  4. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  5. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 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
  •