Current (I think) svn version has a wee bug - it assumes that all
classes have a single primary key.
This causes barfage. Want a patch?
This little bit in _do_update is the culprit.
foreach my $param ( $class->columns ) {
next if ($param eq $class->columns('Primary'));
next if grep {/^${param}$/} @pks;
my $value = $r->params->{$param};
next unless (defined $value);
$this_class_params->{$param} = ( $value eq '' ) ? undef : $value;
}
Really need to get the PK field(s) into an array before the loop and
grep it I think.
nic
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel