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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]