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 »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Custom date field
Pages: [1]

Author Topic: Custom date field  (Read 3595 times)

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Custom date field
July 22, 2009, 09:16:42 am
Hi guys,

I have added a custom date field on the 'customer' record. The only way to add a date was by selecting 'select date'. However when I look at the field now and try to enter it in the customer record I notice that I can only enter it as today or in the future. Years from the past simply do not show.

Have I missed something?


andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Custom date field
July 22, 2009, 12:01:45 pm
a little bit of more data: I used to upload functionality to fill the date fields. But because the entered date is in the past it gives an error on each entry form in civicrm. So this might also be a problem with the upload tool since it allows the upload to a field but doesn't check if it creates inconsistancy.

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Custom date field
July 23, 2009, 11:19:14 am
did a little more digging. I found the date settings and figure I would need to alter the 'custom' setting which was already at 20 years back and future. Even when changing it, it doesn't affect the date picker.

Is this considered a bug and should I report it to Jira? Can someone confirm?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom date field
July 23, 2009, 05:27:15 pm

can you please reproduce this issue on demo.

if important to you consider investigating the code and attaching a patch. contact us on IRC and we can help out

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Custom date field
July 23, 2009, 10:58:14 pm
I already reproduced it on the demo system and it seems to have the same behaviour.

"if important to you consider investigating the code and attaching a patch. contact us on IRC and we can help out."

It is important for the installation I am running but since I cannot program it will be very hard for me to analyze the code and make a patch. So I guess the issue will not be solved without me investigating it myself with maybe a little help?

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Custom date field
July 24, 2009, 12:38:31 am
andro01 :

You might want to check the following settings on http://drupal.demo.civicrm.org/civicrm/admin/custom/group/field?action=update&reset=1&gid=2&id=4
Dates may be up to _____  years prior to current date.
Dates may be up to _____  years after the current date.

Since you have left them blank, CiviCRM shows up only the current year.

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

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Custom date field
July 24, 2009, 01:20:01 am
not quite sure what sure what you mean. When creating the field it does not give an option to enter years before or after. There is a date admin, but the 'custom'  setting there does not seem to impact the custom field.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Custom date field
July 24, 2009, 01:37:47 am
You should check settings for mydate (http://drupal.demo.civicrm.org/civicrm/admin/custom/group/field?action=update&reset=1&gid=2&id=5)
and compare here :
http://drupal.demo.civicrm.org/civicrm/admin/custom/group?action=preview&reset=1&id=2
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Custom date field
July 24, 2009, 01:51:22 am
ok... now it becomes interesting. My browser does NOT show any option to change this or I am completely overlooking it.

When I go to the link it shows the following :

Custom Data Field
Field Label <input field>   
Data and Input Field TypeDate   Select Date

After that three buttons... nothing else. So where is that option ?



Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Custom date field
July 24, 2009, 02:14:33 am
andro01 :

It seems to be a bug with IE.
Can you file an issue with our issue tracker JIRA (http://issues.civicrm.org/)

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

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Custom date field
July 24, 2009, 02:21:43 am
ok.. will do... firefox doesn't have the problem?

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Custom date field
July 24, 2009, 02:22:32 am
works fine with FF.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Custom date field
August 03, 2009, 12:32:48 am
This has been fixed in 2.2, should be available in the next release.
Here is the patch :  http://fisheye.civicrm.org/changelog/CiviCRM?cs=22821

-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 »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Custom date field

This forum was archived on 2017-11-26.