[Jifty-commit] r5024 - in Jifty-DBI/branches/tisql: lib/Jifty/DBI

Jifty commits jifty-commit at lists.jifty.org
Tue Feb 5 21:16:56 EST 2008


Author: ruz
Date: Tue Feb  5 21:16:56 2008
New Revision: 5024

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

Log:
 r4645 at cubic-pc (orig r4644):  jesse | 2007-12-08 00:24:42 +0300
  r72795 at pinglin:  jesse | 2007-12-07 16:17:22 -0500
  * By not reaching inside the pager object, we save on some useless forced SQL queries
 


Modified: Jifty-DBI/branches/tisql/lib/Jifty/DBI/Collection.pm
==============================================================================
--- Jifty-DBI/branches/tisql/lib/Jifty/DBI/Collection.pm	(original)
+++ Jifty-DBI/branches/tisql/lib/Jifty/DBI/Collection.pm	Tue Feb  5 21:16:56 2008
@@ -1754,7 +1754,7 @@
     $self->rows_per_page( $args{'per_page'} );
     # We're not using $pager->first because it automatically does a count_all 
     # to correctly return '0' for empty collections
-    $self->first_row((($self->pager->current_page - 1) * $self->pager->entries_per_page) + 1);
+    $self->first_row(($args{'current_page'} - 1) * $args{'per_page'} + 1);
 
 }
 


More information about the Jifty-commit mailing list