[Jifty-commit] r878 - in Jifty-DBI/trunk: lib/Jifty/DBI

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Apr 20 11:13:32 EDT 2006


Author: jesse
Date: Thu Apr 20 11:13:31 2006
New Revision: 878

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm

Log:
 r11740 at hualien:  jesse | 2006-04-20 10:45:06 -0400
 * Eric Wilhelm points out that a one-indexed "First row" should never, ever be 0
 


Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm	Thu Apr 20 11:13:31 2006
@@ -1179,7 +1179,7 @@
         ->current_page( $args{'current_page'} );
 
     $self->rows_per_page( $args{'per_page'} );
-    $self->first_row( $self->pager->first );
+    $self->first_row( $self->pager->first ||1 );
 
 }
 


More information about the Jifty-commit mailing list