-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRM-19124 update birth_date to be consistent at point of hook (use da… #9847
CRM-19124 update birth_date to be consistent at point of hook (use da… #9847
Conversation
a815caa
to
aa24aae
Compare
Currently this creates an inconsistent output in the 'pre' hook for the 'Individual' object - details in JIRA. |
80fe542
to
1c05dad
Compare
1c05dad
to
ed0ca24
Compare
In the end I opted to leave the date handling in smarty & have not unravelled our custom version of strftime formatting
5b7ca56
to
f2d30bf
Compare
@seamuslee001 @JKingsnorth I think I've finally cracked it. I managed to push the formatting down into smarty in a consistent way by assigning smarty_view_format. It's a little weird & magical still, but now consistent with between custom & core dates. If the date is a format that does not include day then it will choose a setting that doesn't. The hook format should be OK on pre hook now... |
I believe CRM-15948 is also fixed in this |
ok so Pre Hook - API from drush
Post Hook - API from drush
Pre hook contact summary inline update
Post hook contact summary inline update
Pre Hook Contact Edit screen
Post Hook Contact Edit Screen
|
I didn't test updating via Import but i think that gives a pretty good coverage. Pre hook still seems a bit all over the shop, However we do have 2 formats now on Pre which is all right. Post hook looks pretty stable now |
I think it is a reduction on formats anyway :-) You think this is good to merge? |
NB the key thing in my mind is getting rid of custom formats - there are still 2 formats but none of them look like 04/05/2017 which could be 4 May or 5 April.... |
Also note this should affect profile pages too |
given this appears to be an improvement and a reduction down to 2 formats in the hook output. I think we should merge this as an improvement |
thanks @seamuslee001 |
CRM-19124 update birth_date to be consistent at point of hook (use da…
…tepicker)