Results 1 to 6 of 6

Thread: Custom field data not being saved

  1. #1
    smueller72 is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    125

    Default Custom field data not being saved

    HI all - I've seen similar but slightly different threads regarding an apparent issue with custom field data not being saved. I created a custom filed(Active) of type checkbox in the accounts module. I made it a required field with the default being checked. I added this field to the detail and edit views ot the account modules. Now when I try to edit the field by unchecking the box and clicking Save the change does not take affect. I've also done the same with a custom drop-down field with the same results - ie. the change in value is not being saved.

    This was happening with 4.5f and after I just upgraded to 4.5g.

    I'm running php 4.3.9 and MySQL 5 on a CentOS box.

    I've created numerous custom fields across various versions of Sugar going back to the early days of the Studio with no issues. Any insight as to what may be happening would be greatly appreciated.

  2. #2
    Scott_Savage is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Sydney, Australia
    Posts
    193

    Default Re: Custom field data not being saved

    I am having the exact same problem, except I am running on the WIMP stack with 4.5.0g. Anyone got a solution? It seems to be a problem with drop down menus only? I added some checkboxes and text fields and they seem to be ok. The non-custom drop-downs seem to work ok though?
    Web Server: IIS 6, Win2k3
    PHP: 5.2.5
    MySQL: 5.0.27-community-nt
    Sugar: 4.5.0j Open Source
    Website: www.scottsavage.net

  3. #3
    smueller72 is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    125

    Default Re: Custom field data not being saved

    Per my first post - I experienced this issue with both a checkbox and a drop down custom field. Custom fields were working fine with the first 4.5 release. I haven't attempted to add any new custom fields until 4.5f and now 4.5g where I noticed this issue.

  4. #4
    Scott_Savage is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Sydney, Australia
    Posts
    193

    Default Re: Custom field data not being saved

    I fixed my problem!!! Maybe this will help you too.

    1. Open \cache\dynamic_fields\XXX\fields.php where XXX is the module name
    2. Find the array for your custom field
    3. Copy the id value
    4. Open the editview.html page for the XXX module
    5. Find the input field for the custom field
    6. Paste in the value into an id tag (eg. <input id="paste here" name=.........etc.)

    Worked for me! :-) Must be something to do with the javascript converting the value with a getElementById() or something?
    Web Server: IIS 6, Win2k3
    PHP: 5.2.5
    MySQL: 5.0.27-community-nt
    Sugar: 4.5.0j Open Source
    Website: www.scottsavage.net

  5. #5
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Custom field data not being saved

    Wow Scott_Savage, great detective work. I'll run this by the Egrs to see what's going on.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  6. #6
    smueller72 is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    125

    Default Re: Custom field data not being saved

    Scott - I second Andy's compliment about the detective work done. I'll follow same steps on my LAMP-based install first thing tomorrow and post the results. Hopefully that will prove to resolve whathever the issue may be for both our WIMPy and LAMP community members.

Thread Information

Users Browsing this Thread

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

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
  •