diff options
-rw-r--r-- | httemplate/elements/notify-tickets.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html index 35917c34d..37a4e8456 100644 --- a/httemplate/elements/notify-tickets.html +++ b/httemplate/elements/notify-tickets.html @@ -25,7 +25,12 @@ if ($enabled) { # if there are no tickets the current user could see, always hide it my $AnyTickets = RT::Tickets->new($CurrentUser); foreach my $status (qw(resolved rejected deleted)) { - $AnyTickets->LimitStatus( OPERATOR => '!=', VALUE => $status ); + $AnyTickets->RT::SearchBuilder::Limit( + FIELD => 'Status', + OPERATOR => '!=', + ENTRYAGGREGATOR => 'AND', + VALUE => $status, + ); } $enabled = 0 if $AnyTickets->Count == 0; |