#1144 new

DataMapper throw exception when bad formatted date hash is passed

Reported by currep | December 3rd, 2009 @ 03:31 PM

When a "blank" string is passed in a date has @person.birthdate = {:month => 12, :day => 3, :year => ""} like when being posted form a Form and a field is left blank, datamapper throw an exception. See pastie: http://pastie.org/726374

There is a 'proposed' fix in the pastie, but it makes the assumption that "" should evaluate to 0. (maybe?) Dkubb said the value should just be passed on so validators can handle it.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Referenced by