[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-598-g6d9342e
? sunnavy
sunnavy at bestpractical.com
Thu Aug 26 08:26:38 EDT 2010
The branch, 3.9-trunk has been updated
via 6d9342e1ae339b4277be8ba913a728b4da24aed7 (commit)
from fb5e4f06c637cafcbe17c3aef46b60f8c64d3057 (commit)
Summary of changes:
share/html/Elements/ShowMemberships | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 6d9342e1ae339b4277be8ba913a728b4da24aed7
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Aug 26 20:26:00 2010 +0800
use RowsPerPage to limit numbers in db level
diff --git a/share/html/Elements/ShowMemberships b/share/html/Elements/ShowMemberships
index 47a09c5..1a760de 100644
--- a/share/html/Elements/ShowMemberships
+++ b/share/html/Elements/ShowMemberships
@@ -46,7 +46,6 @@
%#
%# END BPS TAGGED BLOCK }}}
<ul>
-% my $i = 1;
% while ( my $GroupMember = $GroupMembers->Next ) {
% my $Group = RT::Group->new($session{'CurrentUser'});
% $Group->Load($GroupMember->GroupId) or next;
@@ -55,7 +54,6 @@
% } elsif ($Group->Domain eq 'SystemInternal') {
<li><em><% loc($Group->Type) %></em></li>
% }
-% last if $Limit && ++$i > $Limit;
% }
</ul>
<%INIT>
@@ -85,6 +83,8 @@ $GroupMembers->OrderByCols(
{ ALIAS => $alias, FIELD => 'Name' },
);
+$GroupMembers->RowsPerPage($Limit) if $Limit;
+
</%INIT>
<%ARGS>
$UserObj
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list