Fix default date value display issue as mentioned in issue #1353 #1383

Merged
merged 1 commit into from Nov 9, 2012

2 participants

@bterkuile

In issue #1353 it is mentioned that the default value is not displayed in the forms. The reason was that the :formatted_date_value of the date field object was not looking at the default date for new records. I assume that persisted records should take the persisted value. An error will occur if the default date is set as a string, but given separation of logic and display this should not be a problem.

@bbenezech
Collaborator

With proper unit tests! Awesome!

Thanks

@bbenezech bbenezech merged commit 4b1a4c2 into sferik:master Nov 9, 2012

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment