CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 3.0.1 - Dates in Custom Data Fields Bug?
Pages: [1]

Author Topic: 3.0.1 - Dates in Custom Data Fields Bug?  (Read 2102 times)

bryancn

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
3.0.1 - Dates in Custom Data Fields Bug?
October 20, 2009, 09:02:58 pm
I have upgraded from 2.2 to 3.0 to 3.0.1.

When browsing a custom data tab for individual data, dates display correctly as DD-MM-YYY (eg 12-03-09)

If I then click the tab's edit button, the date fields display as selection drop downs with the day and the year correctly populated but with '-month-' displayed for all month fields. Edits to other fields cannot be saved unless the dates are corrected. Clicking on the drop down allows the correct months to be selected and saved.

However, these values don't 'stick' and when I edit again the same problem occurs. I have checked the date validations in the custom data definitions and these are OK.

No problems with standard dates like Date of Birth.

Problem is the same in Firefox and Safari.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 20, 2009, 11:35:07 pm
bryancn :

Could you replicate the same on http://demo.civicrm.org/

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

bryancn

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 21, 2009, 08:15:58 pm
Yes.

It seems to happen if I set the 'Complete Date' formats in Global Settings to '%d-%m-%Y' and '%d %m %Y' rather than the default.


Bryan

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 27, 2009, 07:19:49 am
Hello Yashoda,
It is replicated on the demo site.
Look for contact King Kong and custom field "Date to test".
When the contact is edited, the date 02-05-2009  is displayed as 02- month - 2009
Do I need to file this as a bug?
Greetz Joop

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 27, 2009, 07:29:55 am
Changing date input format
from %d %m %Y 
to %d-%m-%Y  solves this.

bryancn

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 27, 2009, 12:43:57 pm
This change appears to make no difference in in my installation, performing identically to my original post.

B

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 28, 2009, 04:52:10 am
You are right, I only checked a standard CiviCRM date field.
Custom dates still show the bug.
I think this is a critical issue. When editing a contact the Month value will be lost.
I have filed this issue:
http://issues.civicrm.org/jira/browse/CRM-5310

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 28, 2009, 01:24:21 pm
Hello Bryan,
I have discussed this on IRC and Kurund provided a patch which proved to solved the problem. It will be included in 3.0.3. If you need the solution earlier you can grab the patch - i supose - by svn,  or drop me a message and i will send you the patched file.

bryancn

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 29, 2009, 01:59:21 pm
Thanks for your help. I can get by with the default format until 3.0.3

Regards

Bryan

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: 3.0.1 - Dates in Custom Data Fields Bug?
October 29, 2009, 10:35:03 pm
Here is the patch :
http://fisheye2.atlassian.com/changelog/CiviCRM?cs=24612

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 3.0.1 - Dates in Custom Data Fields Bug?

This forum was archived on 2017-11-26.