[Rt-commit] r14828 - in rt/branches/3.6-EXPERIMENTAL-PAGING: lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Tue Aug 5 19:50:22 EDT 2008
Author: ruz
Date: Tue Aug 5 19:50:21 2008
New Revision: 14828
Modified:
rt/branches/3.6-EXPERIMENTAL-PAGING/ (props changed)
rt/branches/3.6-EXPERIMENTAL-PAGING/lib/RT/Tickets_Overlay.pm
Log:
r14821 at cubic-pc: cubic | 2008-08-05 05:04:15 +0400
* reuse generic Next and FilterRecord methods
Modified: rt/branches/3.6-EXPERIMENTAL-PAGING/lib/RT/Tickets_Overlay.pm
==============================================================================
--- rt/branches/3.6-EXPERIMENTAL-PAGING/lib/RT/Tickets_Overlay.pm (original)
+++ rt/branches/3.6-EXPERIMENTAL-PAGING/lib/RT/Tickets_Overlay.pm Tue Aug 5 19:50:21 2008
@@ -2759,22 +2759,10 @@
sub Next {
my $self = shift;
-
- $self->_ProcessRestrictions() if ( $self->{'RecalcTicketLimits'} == 1 );
-
- my $Ticket = $self->SUPER::Next();
- # if there never was any ticket
- return $Ticket unless $Ticket;
- # filtered out
- return $self->Next if $self->FilterRecord( $Ticket );
- # fine
- return $Ticket;
+ $self->_ProcessRestrictions if $self->{'RecalcTicketLimits'}
+ return $self->SUPER::Next( @_ );
}
-
-
-
-
# }}}
# }}}
@@ -3081,7 +3069,7 @@
sub PrepForSerialization {
my $self = shift;
delete $self->{'items'};
- $self->RedoSearch();
+ $self->RedoSearch;
}
=head1 FLAGS
More information about the Rt-commit
mailing list