[Jifty-commit] r5074 - in jifty/trunk: lib/Jifty/Action/Record lib/Jifty/View/Declare

Jifty commits jifty-commit at lists.jifty.org
Thu Feb 7 23:49:24 EST 2008


Author: jesse
Date: Thu Feb  7 23:49:24 2008
New Revision: 5074

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Action/Record/Search.pm
   jifty/trunk/lib/Jifty/View/Declare/CRUD.pm

Log:
 r27479 at 31b:  jesse | 2008-02-07 23:49:17 -0500
 Small cleanups to CRUD views to help make RT work


Modified: jifty/trunk/lib/Jifty/Action/Record/Search.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record/Search.pm	(original)
+++ jifty/trunk/lib/Jifty/Action/Record/Search.pm	Thu Feb  7 23:49:24 2008
@@ -195,13 +195,13 @@
     my $self = shift;
 
     # Create a generic collection for our record class
-    my $collection = Jifty::Collection->new(
+    my $collection = $self->record_class->collection_class->new(
         record_class => $self->record_class,
         current_user => $self->record->current_user
     );
 
     # Start with an unlimited collection
-    $collection->unlimit;
+    $collection->find_all_rows;
 
     # For each field, process the limits
     for my $field (grep {$self->has_argument($_)} $self->argument_names) {

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	Thu Feb  7 23:49:24 2008
@@ -497,7 +497,7 @@
         $collection = $search;
     } else {
         $collection = $collection_class->new();
-        $collection->unlimit();
+        $collection->find_all_rows();
     }
 
     $collection->set_page_info( current_page => $page, per_page => $self->per_page );


More information about the Jifty-commit mailing list