Admin Settings - Date Format "bug"

5 views
Skip to first unread message

Fadi Wissa

unread,
Oct 6, 2017, 5:56:28 PM10/6/17
to Church.IO
Hi Tim -

If I modify the date format in the admin setting section:
http://<site-url>/admin/settings#tab-formats -> Date and set it to something like '%d %b %Y' the site crashes.

I've found out that this is caused by a null reference in app/helpers/application_helper.rb in datepicker_format where it tries to downcase date_format (which is undefined in case the date format contains anything other than the three replacements %Y, %m and %d).
I'm not sure what the return value of datepicker_format is used for so I could not figure out the best resolution.

Tim Morgan

unread,
Oct 6, 2017, 6:25:35 PM10/6/17
to Church.IO
Fadi, thanks for letting us know! Can you post this as an "issue" on GitHub so we can track it there?


-Tim

--
https://church.io
https://github.com/churchio
http://chat.church.io
---
You received this message because you are subscribed to the Google Groups "Church.IO" group.
To unsubscribe from this group and stop receiving emails from it, send an email to churchio+u...@googlegroups.com.
To post to this group, send email to chur...@googlegroups.com.
Visit this group at https://groups.google.com/group/churchio.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Fadi Wissa

unread,
Oct 7, 2017, 4:35:21 PM10/7/17
to Church.IO
Reply all
Reply to author
Forward
0 new messages