Skip Menu |
 

This queue is for tickets about the Class-DBI-AsForm CPAN distribution.

Report information
The Basics
Id: 14758
Status: new
Priority: 0/
Queue: Class-DBI-AsForm

People
Owner: Nobody in particular
Requestors: sjq [...] debian.org
Cc:
AdminCc:

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



Subject: _to_select won't allow specifying none or NULL
Download (untitled) / with headers
text/plain 726b
This is from a bug report filed against my Debian package of Class::DBI::AsForm version 2.42 See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330173 for full details. The reporter said: when _to_select is used for cdbi-has_a-has_many-relationships, there is no way for the users to specifiy "none", even if a "undef" for that fields and thus a NULL for the SQL cell would be perfectly acceptible. Adding my $sel = HTML::Element->new("option", value => undef); $sel->attr("selected" => "selected") if ref $self and not defined $self->$col; $sel->push_content("none"); $a->push_content($sel); before for (@objs) { in _to_select fixes the problem for me.
Date: Mon, 26 Sep 2005 17:07:15 +0100
From: Tony Bowden <tony [...] kasei.com>
To: Guest via RT <bug-Class-DBI-AsForm [...] rt.cpan.org>
Subject: Re: [cpan #14758] _to_select won't allow specifying none or NULL
RT-Send-Cc:
Download (untitled) / with headers
text/plain 303b
On Mon, Sep 26, 2005 at 10:17:54AM -0400, Guest via RT wrote: Show quoted text
Thanks for the report. A failing test case would enable this to be fixed much quicker if either you or the original reporter could provide one. Thanks, Tony


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.