[Jifty-commit] r2613 - in jifty/trunk: lib/Jifty/Plugin/REST
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Jan 26 19:07:54 EST 2007
Author: trs
Date: Fri Jan 26 19:07:54 2007
New Revision: 2613
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
Log:
r19120 at zot: tom | 2007-01-26 19:07:44 -0500
Also add the column and key the request is on in case the action expects that instead of the ID
Modified: jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm Fri Jan 26 19:07:54 2007
@@ -448,9 +448,9 @@
$class =~ s/^[\w\.]+\.//;
$ENV{REQUEST_METHOD} = 'POST';
- if ( defined $rec->id ) {
- Jifty->web->request->argument( 'id' => $rec->id );
- }
+ Jifty->web->request->argument( $column => $key );
+ Jifty->web->request->argument( 'id' => $rec->id )
+ if defined $rec->id;
# CGI.pm doesn't handle form encoded data in PUT requests (in fact,
# it doesn't really handle PUT requests properly at all), so we have
More information about the Jifty-commit
mailing list