[freeside-commits] freeside/rt/lib/RT/Search Googleish.pm, 1.1.1.6, 1.2
Mark Wells
mark at wavetail.420.am
Thu Feb 17 17:24:47 PST 2011
Update of /home/cvs/cvsroot/freeside/rt/lib/RT/Search
In directory wavetail.420.am:/tmp/cvs-serv23639/lib/RT/Search
Modified Files:
Googleish.pm
Log Message:
option to include resolved tickets in search, RT#11658
Index: Googleish.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/Search/Googleish.pm,v
retrieving revision 1.1.1.6
retrieving revision 1.2
diff -u -w -d -r1.1.1.6 -r1.2
--- Googleish.pm 17 Feb 2011 00:22:01 -0000 1.1.1.6
+++ Googleish.pm 18 Feb 2011 01:24:45 -0000 1.2
@@ -176,13 +176,15 @@
push @queue_clauses, "Queue = '$quoted_queue'";
}
+ if ( ! @status_clauses
+ and ! RT->Config->Get('SimpleSearchIncludeResolved') ) {
+ # implicitly exclude resolved status
+ @status_clauses = map "Status = '$_'", RT::Queue->ActiveStatusArray();
+ }
+
push @tql_clauses, join( " OR ", sort @id_clauses );
push @tql_clauses, join( " OR ", sort @owner_clauses );
- if ( ! @status_clauses ) {
- push @tql_clauses, join( " OR ", map "Status = '$_'", RT::Queue->ActiveStatusArray());
- } else {
push @tql_clauses, join( " OR ", sort @status_clauses );
- }
push @tql_clauses, join( " OR ", sort @user_clauses );
push @tql_clauses, join( " OR ", sort @queue_clauses );
@tql_clauses = grep { $_ ? $_ = "( $_ )" : undef } @tql_clauses;
More information about the freeside-commits
mailing list