Results 1 to 7 of 7

Thread: Can't save record on custom module

  1. #1
    chr1831 is offline Junior Member
    Join Date
    Nov 2007
    Posts
    3

    Default Can't save record on custom module

    Hello Everyone,

    When I try to save a record on a custom module (built from the module builder) I see the following messages in firebug and the save does not go through.

    inputsWithErrors[-1] is undefined
    sugar_grp1.js?s={Removed UID}&c=1() (line 159)
    [Break On This Error] window.setTimeout("inputsWithErrors["+...roundColor = '';",2000);}}catch(e){}}

    Any ideas?

    Thanks,
    Chris

  2. #2
    sdemw is offline Junior Member
    Join Date
    Aug 2011
    Posts
    3

    Default Re: Can't save record on custom module

    Have the exact same issue here. 6.3 on mysql/ win server 08.
    Let me know if you find a solution.
    Thanks,
    S.
    Quote Originally Posted by chr1831 View Post
    Hello Everyone,

    When I try to save a record on a custom module (built from the module builder) I see the following messages in firebug and the save does not go through.

    inputsWithErrors[-1] is undefined
    sugar_grp1.js?s={Removed UID}&c=1() (line 159)
    [Break On This Error] window.setTimeout("inputsWithErrors["+...roundColor = '';",2000);}}catch(e){}}

    Any ideas?

    Thanks,
    Chris

  3. #3
    gregwatson is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    20

    Default Re: Can't save record on custom module

    I'm seeing this with a few records in the Contacts module in 6.3 RC2. I've spent a little while trying to debug, but no luck figuring out what's going on yet.

    --Greg

  4. #4
    gregwatson is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    20

    Default Re: Can't save record on custom module

    I just figure out what was causing the problem for me. The contact records that don't save have a campaign_id stored in the database record. However our Sugar install doesn't have any campaigns. I'm not sure how that scenario occurred, but the problem is that it triggers a validation error on save but Sugar doesn't display any error for the user (something like "Invalid Campaign value" would work).

    In my case if I click the "X" button to the right of the Campaign field and then save, it works properly.

    I didn't check, but I wouldn't be surprised if similar cases with other join fields also trigger this error.

    --Greg

  5. #5
    Francescas's Avatar
    Francescas is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    159

    Default Re: Can't save record on custom module

    Same here but on Tasks in 6.2.2. Pro

    It appears to be an issue with permissions.

    When logged in as Admin I can pull up the record and edit it and save. I see the Campaign Name in the front end in both Detail View and Edit View, and I see the campaign_id in the back end through Inspect Element.

    When logged is as a Normal user I can pull up the record and edit but I don't see the Campaign name in Detail or Edit view although I can still see the campaign_id when I Inspect Element.
    I also cannot save the changes with Normal user:
    The error I see on Firebug is: inputsWithErrors[-1] is undefined

    I am logging a ticket with support on this, I'll post the results here.

    Francesca

  6. #6
    Francescas's Avatar
    Francescas is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    159

    Default Re: Can't save record on custom module

    Solution:

    Check the Teams on your Campaign
    If the user is trying to update a record with a relate field to Campaigns and does not have access to the Campaign record he/she cannot see the Campaign name and cannot save any changes on that record.

    In our case:
    We have a relate field to Campaign on Tasks
    The Campaign was loaded from the back end without a team_id or team_set_id

    I changed the Campaign teams to Global. Now everyone can see the campaign name on the Task record and save changes to those records that have relate fields from Campaign in them.

  7. #7
    Francescas's Avatar
    Francescas is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    159

    Default Re: Can't save record on custom module

    It seems I ended up with two accounts on Forums... quite confusing. And my last post is held up by moderator..

    The solution to this problem is check the Teams on your Campaign records.

    If the user trying to update the record containing the relate field to Campaigns is in a team that is different from the Campaign team he/she cannot update any field on that record.

    Francesca

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need before save for new record (Custom File Module)
    By dvelguru in forum Developer Help
    Replies: 5
    Last Post: 2010-01-06, 10:16 PM
  2. Saving Custom module record issue
    By chrislynch8 in forum Help
    Replies: 5
    Last Post: 2009-06-02, 12:07 PM
  3. Replies: 1
    Last Post: 2008-11-17, 12:33 PM
  4. Custom Module - Name field not linking to record
    By robert.blasingame in forum Help
    Replies: 5
    Last Post: 2008-01-31, 07:30 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
  •