Results 1 to 4 of 4

Thread: Custom date fields causing wider problems on IIS

  1. #1
    andrewm is offline Sugar Community Member
    Join Date
    Jun 2005
    Posts
    47

    Default Custom date fields causing wider problems on IIS

    I've got a problem with custom fields which seems to be related to custom date fields. I reproduced it as follows:

    - Clean install of Sugar Suite 4.5.1a on Windows 200 Server / IIS 5.0 / PHP 5.2.1 / MySQL 5.0.27
    - Created 2 custom fields in the account module: one text, one date
    - Added the custom text field to the edit view of the Accounts module (ie I didn't add the date field)
    - Created a new record with a value in the custom text field.
    - Edited the record and changed the text field. The new value is NOT saved

    Notes:
    - If I remove the date field from the module (even though its not being used) then any changes to the custom text fields are saved as expected.
    - If I place the date field on the EDIT layout, the custom data won't save at all
    - If I do the above procedure on the current SugarCRM demo site, it works fine.

    Anyone any ideas for this?
    Last edited by andrewm; 2007-03-13 at 07:31 AM.

  2. #2
    andrewm is offline Sugar Community Member
    Join Date
    Jun 2005
    Posts
    47

    Default Re: Custom date fields causing wider problems on IIS

    I just noticed the following in the log:

    03/13/2007 12:07:02 AM,744 [7096] ERROR SugarCRM - MySQL error 1292: Incorrect date value: 'NULL' for column 'lastrevieweddate_c' at row 1

    So I'm guessing it could be related to this thread:

    http://www.sugarcrm.com/forums/showt...highlight=1292

    Though I don't see a concrete resolution in that thread - anyone know of one?
    Last edited by andrewm; 2007-03-13 at 07:55 AM.

  3. #3
    wjohnson is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    242

    Default Re: Custom date fields causing wider problems on IIS

    When we ran into that problem we were able to get around it by turning off MySQL strict mode at the instruction of Sugar Support. I don't really view that as a solution because we have a financial application running off MySQL as well which really benefits from strict mode. I hope that future versions of Sugar will make the changes necessary to run in MySQL strict mode.

  4. #4
    andrewm is offline Sugar Community Member
    Join Date
    Jun 2005
    Posts
    47

    Default Re: Custom date fields causing wider problems on IIS

    Thanks - turning off STRICT mode did indeed fix it.

    I agree with you that Sugar should be able to use that mode.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Saving and updating custom fields data
    By jones70 in forum Developer Help
    Replies: 2
    Last Post: 2011-10-05, 06:10 AM
  2. Replies: 8
    Last Post: 2007-04-16, 05:45 PM
  3. Custom Fields. Many, many problems.
    By hkphooey in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-02-02, 10:22 AM
  4. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  5. Replies: 7
    Last Post: 2006-06-06, 07:56 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
  •