Your message dated Sat, 19 Jul 2008 23:31:05 +0200
with message-id <[EMAIL PROTECTED]>
and subject line libclass-dbi-asform-perl: _to_select won't allow specifying
none or NULL
has caused the Debian Bug report #330173,
regarding _to_select won't allow specifying none or NULL
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
330173: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330173
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libclass-dbi-asform-perl
Version: 2.42-1
Severity: normal
File: /usr/share/perl5/Class/DBI/AsForm.pm
Hi,
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.
Thanks,
Joachim
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.otto
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages libclass-dbi-asform-perl depends on:
ii libclass-dbi-perl 0.96-1 A convenient abstraction layer to
ii libclass-dbi-plugin-type-perl 0.02-3 Determine type information for Cla
ii libdbi-perl 1.48-2 Perl5 database interface by Tim Bu
ii libhtml-tree-perl 3.18-1 represent and create HTML syntax t
ii perl 5.8.7-5 Larry Wall's Practical Extraction
libclass-dbi-asform-perl recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
The submitter of the bug report suggests to close it.
--- End Message ---