[freeside-commits] branch FREESIDE_3_BRANCH updated. fdfaba1835c3e401688dca7a99c1f5ac4fdfd3b4
Mark Wells
mark at 420.am
Wed Jul 13 17:47:41 PDT 2016
The branch, FREESIDE_3_BRANCH has been updated
via fdfaba1835c3e401688dca7a99c1f5ac4fdfd3b4 (commit)
from d0549e4bbb9fd7d639fbc66d328b1eecb939285b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fdfaba1835c3e401688dca7a99c1f5ac4fdfd3b4
Author: Mark Wells <mark at freeside.biz>
Date: Wed Jul 13 17:40:24 2016 -0700
also hide unreplied status for Deleted tickets, #41670
diff --git a/rt/lib/RT/Search/UnrepliedTickets.pm b/rt/lib/RT/Search/UnrepliedTickets.pm
index 996521e..70baf04 100644
--- a/rt/lib/RT/Search/UnrepliedTickets.pm
+++ b/rt/lib/RT/Search/UnrepliedTickets.pm
@@ -40,18 +40,14 @@ sub Prepare {
VALUE => $TicketsObj->CurrentUser->id
);
}
- $TicketsObj->RT::SearchBuilder::Limit(
- FIELD => 'Status',
- OPERATOR => '!=',
- ENTRYAGGREGATOR => 'AND',
- VALUE => 'resolved'
- );
- $TicketsObj->RT::SearchBuilder::Limit(
- FIELD => 'Status',
- OPERATOR => '!=',
- ENTRYAGGREGATOR => 'AND',
- VALUE => 'rejected',
- );
+ foreach my $status (qw(resolved rejected deleted)) {
+ $TicketsObj->RT::SearchBuilder::Limit(
+ FIELD => 'Status',
+ OPERATOR => '!=',
+ ENTRYAGGREGATOR => 'AND',
+ VALUE => $status,
+ );
+ }
my $txn_alias = $TicketsObj->JoinTransactions;
$TicketsObj->RT::SearchBuilder::Limit(
ALIAS => $txn_alias,
-----------------------------------------------------------------------
Summary of changes:
rt/lib/RT/Search/UnrepliedTickets.pm | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
More information about the freeside-commits
mailing list