Results 1 to 3 of 3

Thread: Error when we try to Quick Create a Contact into Accounts Module

  1. #1
    kwoitena is offline Member
    Join Date
    Dec 2008
    Location
    San Antonio, TX
    Posts
    16

    Default Error when we try to Quick Create a Contact into Accounts Module

    We've recently upgraded from Sugar 4.5.1e to 5.0.0i. Since the upgrade, if we try to add a contact into an account using Quick Create, it does not "reload" the page with the new contact, but displays the code for the "Find Duplicates" script as such (though not as neat as my formatting):
    Code:
    {"status":"dupe","get":
    "module=Contacts
    &action=ShowDuplicates
    &Contactsassigned_user_id=00530000000hupBAAQ&Contactsteam_id=1
    &Contactsfirst_name=Joe
    &Contactslast_name=Smith
    &Contactsphone_work=%28800%29+330-3591
    &Contactsprimary_address_street=1330+West+Blanco+Rd
    &Contactsprimary_address_city=San+Antonio
    &Contactsprimary_address_state=TX
    &Contactsprimary_address_postalcode=78232
    &Contactsprimary_address_country=USA
    &Contactsassigned_user_name=gdoss
    &Contactsaccount_name=Test+Account
    &Contactsaccount_id=b7dbd3edfb3d72c00e2a367284b22aad
    &duplicate[0]=4c3de95e-aaa3-89aa-bc20-483ec00dc2ab
    &return_module=Accounts
    &return_action=DetailView
    &return_id=b7dbd3edfb3d72c00e2a367284b22aad"}
    Sometimes, if you click the Back button in the browser, it will add the contact, sometimes it will not. If you go into the Contacts module and quick create a contact with the minimal information, it does not error out, nor does it error when you use the Full Form to generate the contact.

    The steps we're taking to produce this problem are
    1. <Accounts> -> <Contacts> -> Create
    2. Type in information
    3, Click Save.

    The error will appear promptly on our systems. I've looked through the code looking for the ShowDuplicates script, but I'm lost as to what might be broken. Can anyone help?

    Kris

  2. #2
    kwoitena is offline Member
    Join Date
    Dec 2008
    Location
    San Antonio, TX
    Posts
    16

    Default Re: Error when we try to Quick Create a Contact into Accounts Module

    Since there has been no reply to this, I feel I should provide more information:

    If you try to create a contact from the Accounts Contact Subpanel, once the information is entered and you hit save the screen loads this:

    {"status":"success","get":""}

    if there is no duplicate possibility, or this:

    {"status":"dupe","get":"module=Contacts&action=Sho wDuplicates&Contactsassigned_user_id=00530000000hu pBAAQ&Contactsteam_id=1&Contactsfirst_name=Gabe&Co ntactslast_name=Doss&Contactsassigned_user_name=gd oss&Contactsaccount_name=Testy+Account&Contactsacc ount_id=69d83aa975fa318c7c1097386d3adec6&duplicate[0]=3b3e12dd-6f57-4574-2e67-443543f505f0&return_module=Accounts&return_action= DetailView&return_id=69d83aa975fa318c7c1097386d3ad ec6"}

    If there is a duplicate possibility. The Contact is not created if the duplicate code shows, and is if the duplicate Contact code is not present. You must refresh the Account screen to see the new Contact.

    If you go into the Contacts module and create a new contact, it will show any duplicates when you click save. We have not noticed any problem creating contacts through the Contacts module, just the Contacts Subpanel in the Accounts Module.
    Last edited by kwoitena; 2009-02-11 at 08:59 PM.

  3. #3
    kwoitena is offline Member
    Join Date
    Dec 2008
    Location
    San Antonio, TX
    Posts
    16

    Default Re: Error when we try to Quick Create a Contact into Accounts Module

    I managed to fix it. I renamed quickcreatesdef.php file in /custom/modules/Contacts/metadata and in /custom/working/modules/Contacts/metadata to quickcreatedefs.php.bak. I then rebuilt the module in Studio without the emails field. I then copied/pasted the email array from editviewdefs.php into quickcreatedefs.php and rebuilt the module. It works now.

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: 2011-04-18, 11:42 PM
  2. Replies: 1
    Last Post: 2008-09-18, 02:03 PM
  3. Adding contact to quick create form
    By Shane0 in forum Help
    Replies: 5
    Last Post: 2007-07-12, 02:13 PM
  4. Customized Contact Quick Create not working
    By pniranjan in forum Developer Help
    Replies: 0
    Last Post: 2007-04-24, 07:54 AM
  5. How to disable Quick Create on Accounts Module
    By emillion in forum Developer Help
    Replies: 2
    Last Post: 2007-02-02, 06:33 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
  •