[Rt-commit] r18242 - in rt/3.999/branches/merge_to_3.8.2: lib/RT/Search
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Feb 5 03:08:22 EST 2009
Author: sunnavy
Date: Thu Feb 5 03:08:22 2009
New Revision: 18242
Modified:
rt/3.999/branches/merge_to_3.8.2/ (props changed)
rt/3.999/branches/merge_to_3.8.2/lib/RT/Search/Googleish.pm
Log:
r19629 at sunnavys-mb: sunnavy | 2009-02-05 16:07:50 +0800
fix for lib/RT/Search/Googleish.pm
Modified: rt/3.999/branches/merge_to_3.8.2/lib/RT/Search/Googleish.pm
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/lib/RT/Search/Googleish.pm (original)
+++ rt/3.999/branches/merge_to_3.8.2/lib/RT/Search/Googleish.pm Thu Feb 5 03:08:22 2009
@@ -74,7 +74,7 @@
my $self = shift;
my %args = @_;
- $self->{'Queues'} = delete( $args{'Queues'} ) || [];
+ $self->{'queues'} = delete( $args{'queues'} ) || [];
$self->SUPER::_init(%args);
}
@@ -145,7 +145,7 @@
}
# restrict to any queues requested by the caller
- for my $queue ( @{ $self->{'Queues'} } ) {
+ for my $queue ( @{ $self->{'queues'} } ) {
my $queue_obj = RT::Model::Queue->new( current_user => $self->tickets_obj->current_user );
$queue_obj->load($queue) or next;
my $quoted_queue = $Queue->name;
@@ -158,7 +158,8 @@
if ( !@status_clauses ) {
push @tql_clauses,
join( " OR ", map "Status = '$_'",
- RT::Model::Queue->status_schema->active() );
+ RT::Model::Queue->status_schema->valid( 'initial', 'active'
+ ) );
}
else {
push @tql_clauses, join( " OR ", sort @status_clauses );
More information about the Rt-commit
mailing list