Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 61959
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

Owner: Nobody in particular
Requestors: davidsxls [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: not_nullable Documentation
Download (untitled) / with headers
text/plain 109b
I noticed that not_nullable is not documented. This is a patch to add not_nullable documentation do
text/x-perl 684b
diff -u a/ b/ --- a/ 2010-10-07 16:16:27.262087001 +0700 +++ b/ 2010-10-07 16:35:12.322087003 +0700 @@ -970,6 +970,17 @@ range_end => 120, } +=item not_nullable + +Flag indicating whether this field is allowed to be NULL or undef. For example, an optional field like this: + +has_field 'description' => ( + type => 'TextArea', + not_nullable => 1, + ); + +can be left blank on submit and saved to the database as an empty string '' instead of NULL or undef if it is not a database field. Set this flag if you want to be able to store empty string to a database field with a NOT NULL constraint. + =back =head2 apply
Documentation was added to HTML::FormHandler::Field on 10/20.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to