[Jifty-commit] r4505 - in jifty/trunk: lib/Jifty/View/Declare
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Nov 20 14:38:15 EST 2007
Author: sterling
Date: Tue Nov 20 14:38:15 2007
New Revision: 4505
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
Log:
r14171 at dynpc145: andrew | 2007-11-20 13:38:04 -0600
Assume the page is "1" if no value for page is given to the pager in CRUD.
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 Tue Nov 20 14:38:15 2007
@@ -589,7 +589,7 @@
private template 'paging_top' => sub {
my $self = shift;
my $collection = shift;
- my $page = shift;
+ my $page = shift || 1;
if ( $collection->pager->last_page > 1 ) {
span {
More information about the Jifty-commit
mailing list