[Jifty-commit] r3821 - in jifty/trunk: lib/Jifty/View/Declare
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Aug 6 19:38:54 EDT 2007
Author: trs
Date: Mon Aug 6 19:38:53 2007
New Revision: 3821
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
Log:
r25961 at zot: tom | 2007-08-06 19:38:14 -0400
Fix view CRUD template's method of getting the record
Modified: jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/CRUD.pm (original)
+++ jifty/trunk/lib/Jifty/View/Declare/CRUD.pm Mon Aug 6 19:38:53 2007
@@ -191,7 +191,9 @@
=cut
template 'view' => sub :CRUDView {
- my ($self, $record) = @_;
+ my $self = shift;
+ my $record = $self->_get_record( get('id') );
+
my $update = new_action(
class => 'Update' . $self->object_type,
moniker => "update-" . Jifty->web->serial,
More information about the Jifty-commit
mailing list