_do_update_or_create is broken in 2.11, $r is passed to update_from_cgi
and create_from_cgi..
patch :
@@ -125,7 +125,7 @@
# update or create
if ($obj) {
# We have something to edit
- eval { $obj->update_from_cgi( $r => {
+ eval { $obj->update_from_cgi( $h => {
required => $required_cols,
ignore => $ignored_cols,
});
@@ -134,7 +134,7 @@
$fatal = $@;
} else {
eval {
- $obj = $self->create_from_cgi( $r => {
+ $obj = $self->create_from_cgi( $h => {
required => $required_cols,
ignore => $ignored_cols,
} );
Thanks to mst for reporting the bug and providing a fix..
This is also fixed in SVN revision 562 for Maypole 2.12