[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.9-33-g6015dd3

Alex Vandiver alexmv at bestpractical.com
Mon Nov 24 12:50:33 EST 2014


The branch, 4.2-trunk has been updated
       via  6015dd38dca149850b1dca5edc158233d51d863c (commit)
       via  7a783698f5e4f7c47cc0b9c6cf80f510b7f9e99f (commit)
      from  b6f53ebea87ecc28d6d9bcc9aa14af7ab555f94b (commit)

Summary of changes:
 lib/RT/CustomFieldValues/External.pm | 1 +
 1 file changed, 1 insertion(+)

- Log -----------------------------------------------------------------
commit 7a783698f5e4f7c47cc0b9c6cf80f510b7f9e99f
Author: Christian Loos <cloos at netcologne.de>
Date:   Thu Nov 20 13:14:41 2014 +0100

    implement RowsPerPage for external CustomFieldValues
    
    This is only for limiting the result set and necessary to make
    b22dbbb20d6121a30d502d379c9f34ce61b4fabc work.
    
    $i was already defined but unused.

diff --git a/lib/RT/CustomFieldValues/External.pm b/lib/RT/CustomFieldValues/External.pm
index 500a967..00790db 100644
--- a/lib/RT/CustomFieldValues/External.pm
+++ b/lib/RT/CustomFieldValues/External.pm
@@ -196,6 +196,7 @@ sub _DoSearch {
         $value->LoadFromHash( { %defaults, %$_ } );
         next if $check && !$check->( $self, $value );
         $self->AddRecord( $value );
+        last if $self->RowsPerPage and ++$i >= $self->RowsPerPage;
     }
     $self->{'must_redo_search'} = 0;
     return $self->_RecordCount;

commit 6015dd38dca149850b1dca5edc158233d51d863c
Merge: b6f53eb 7a78369
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Nov 24 12:21:19 2014 -0500

    Merge branch '4.2/cfv-external-rowsperpage' into 4.2-trunk


-----------------------------------------------------------------------


More information about the rt-commit mailing list