Results 1 to 2 of 2

Thread: Duplicate Records Display for Auto Create User

  1. #1
    rwoo is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    15

    Default Duplicate Records Display for Auto Create User

    We are running SugarPro patch 5.2.0h using MSSQL on Windows platform...

    We've just turned on Auto Create User option with the following additions:

    $user->load_relationship('team');
    $user->teams->add(1);
    $user->load_relationship('aclroles');
    $user->aclrules->add(READONLY);

    Everything seems to work fine except that when the auto created user logs in, he or she gets everything duplicate in the listview. In another words, he or she gets the duplicate data records for all modules.

    Do you have any idea what needs to be fixed or how to debug this issue?

    Thanks,
    RLW

  2. #2
    rwoo is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    15

    Default Re: Duplicate Records Display for Auto Create User

    FYI -

    I commented out the following two lines and cleaned up the team_memberships table, and it worked OK...

    $user->load_relationship('team');
    $user->teams->add(1);

    Even though it looked normal from the console, it created double entries for Global team into the team_memberships table with FALSE explicit_assign record for the user. It looks like the double entries in the team_memberships table for the same Global team caused the duplicate data records to display for all other modules in different views...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Auto Create Users/User Wizard Prompt
    By drmai in forum Developer Help
    Replies: 0
    Last Post: 2011-10-11, 06:11 PM
  2. Duplicate records
    By bob1965 in forum Help
    Replies: 2
    Last Post: 2009-10-05, 02:55 PM
  3. Replies: 3
    Last Post: 2009-08-26, 03:32 PM
  4. Duplicate Records
    By fbnewtz in forum Help
    Replies: 2
    Last Post: 2008-09-17, 08:40 PM
  5. Replies: 2
    Last Post: 2008-02-11, 05:15 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
  •