Skip Menu |

This queue is for tickets about the Rose-HTML-Objects CPAN distribution.

Report information
The Basics
Id: 30249
Status: resolved
Priority: 0/
Queue: Rose-HTML-Objects

People
Owner: Nobody in particular
Requestors: chris [...] netmonger.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.550
Fixed in: (no value)



Subject: Can't save empty numeric fields
I'm not sure whether this should go in RDBO or here -- it's an interaction issue between them. Basically, Rose::HTML::Form with a non-required "number" field type results in an empty string when the user leaves the field blank. That's not valid for a numeric field in PostgreSQL, so it ends up causing an SQL error. I'm working around it with a trivial filter that returns undef for empty fields, but it seems like this should be built in somewhere. I just don't know where. Or how. Thanks for the excellent modules, and any consideration you can apply to this issue.
From: siracusa [...] gmail.com
That looks like a bug in the number field to me. I'll look into it. Thanks for the report.
This is fixed in SVN. The fix will go out in the next release (0.552)