3

I am running Drupal 7.61 and CiviCRM 5.8.0. I have recently upgraded from 5.3.1 and when I use search builder to locate contacts using created date the date picker does not display. (See attached video link). If I use search builder to find an individual using their birth date the date picker functions correctly.

I have not made any configuration changes to CiviCRM in the upgrade process.

Video showing date picker issue

Screenshot from Demo Site

  • seems not to pop-up for Date Received for Contribution either on dmaster.demo.civicrm.org - also i compared with a 5.3.1 site and not seeing date picker there so not sure if you are suggesting this is a regression or not, but i suggest it is not.. – petednz - fuzion Dec 9 '18 at 22:30
  • It worked fine on 5.3.1 - I used it every day to locate Contacts created after a certain Created Date and it worked just fine. It does work if you search for an Individual's Birth Date. – Martin Fuggle Dec 9 '18 at 23:35
  • but Birth Date works on dmaster.demo.civicrm.org/civicrm/dashboard if you click in the date cell you get a calendar – petednz - fuzion Dec 10 '18 at 0:13
  • No it doesn't - I will add a link to the relevant page in the demo site (which is running 5.10.alpha1 and in Spanish which is not my first language!) in the original post and it shows that the date picker does not display. In fact it operates exactly as in my installation of 5.8.0. – Martin Fuggle Dec 10 '18 at 0:28
  • my apologies - i skim read and thought you were saying that it also didn't work on birth date. – petednz - fuzion Dec 10 '18 at 0:59
3

There was a small bug introduced in the last version where the calendar icon didn't show up in search builder date fields, but the actual datepicker still works fine.

The screenshots and videos are misleading, as they use Contact:Created Date as the example field - this is actually not a date field (despite the name) it is a Timestamp which doesn't work with the datepicker widget, unfortunately, so I don't believe this is a regression.

Edit: I stand corrected. Previous versions did provide a datepicker for timestamp fields, however it didn't work very well since it didn't allow you to specify time. I've created a fix to restore the datepicker and add a timepicker for those fields: https://github.com/civicrm/civicrm-core/pull/13249

  • Thx Coleman - can you clarify. The screenshot in my answer shows there was a Calendar picker in 5.3.1 that worked but you seem to be saying it doesn't work with a datepicker widget. - i added more images to my answer – petednz - fuzion Dec 10 '18 at 19:18
  • Err, I guess it sort of works, except it won't with the = operator as the date entered is less precise than the timestamp. Maybe for timestamp fields we should be presenting a date+time widget for clarity. – Coleman Dec 10 '18 at 20:55
  • 1
    Ok I think I've fixed it! Datepicker now works on both Date and Timestamp fields! github.com/civicrm/civicrm-core/pull/13249 – Coleman Dec 10 '18 at 21:14
1

This is what i am seeing on dmaster compared to a 5.3.1 site

enter image description here

seems like a regression. needs an issue opening.

More from 5.3.1

The datepicker in action

enter image description here

and the outcome

enter image description here

  • Will I raise the issue or will you do that? – Martin Fuggle Dec 10 '18 at 4:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.