
Coercion problem with a missing or blank Date part
Reported by Dan Kubb (dkubb) | December 3rd, 2009 @ 03:31 PM
This problem was reported today on irc by ediright. If one of the parts to a Date (and presumably Time/DateTime) is blank or nil, an exception will be thrown instead of passing through the invalid value so that dm-validations can take over and mark the attribute as invalid.
Here is some sample code, with a temp fix (although I would tend to want to pass through the value than to coerce incorrectly and "hide" the original value)
Comments and changes to this ticket
-
Dan Kubb (dkubb) December 3rd, 2009 @ 03:32 PM
- State changed from unconfirmed to duplicate
ediright beat me to it. This is a dupe of #1144
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »