Skip Menu |

This queue is for tickets about the Maypole-FormBuilder CPAN distribution.

Report information
The Basics
Id: 13803
Status: open
Priority: 0/
Queue: Maypole-FormBuilder

People
Owner: cpan.zerofive [...] googlemail.com
Requestors: davekam [...] pobox.com
Cc:
AdminCc:

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



Subject: setup_form_mode in model doesn't handle multiple pk's
Lines 77 and following: my $pk = $proto->primary_column; my %additional = ref( $proto ) ? ( additional => $proto->$pk ) : (); It should presumably be something like: my @pk = ($proto->primary_column); my %additional = ref( $proto ) ? (additional => join('/', map { $proto->$_ } @pk)) : (); Or possibly something less ugly, but take your pick...
[guest - Wed Jul 20 16:35:41 2005]: Show quoted text
> Lines 77 and following: > > my $pk = $proto->primary_column; > > my %additional = ref( $proto ) ? ( additional => $proto->$pk ) : > (); > > It should presumably be something like: > > my @pk = ($proto->primary_column); > > my %additional = ref( $proto ) ? (additional => join('/', map { > $proto->$_ } @pk)) : (); > > Or possibly something less ugly, but take your pick...
There are a few places in CDBI::FB where it seemed difficult to handle multiple pks, so I'd want to figure it out there first.