From: Ivan Kohler Date: Thu, 9 Feb 2017 00:22:07 +0000 (-0800) Subject: fix slight mistake in "fix ticketing system error on bootstrap of new install" -... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f545571ead3feee00e99e0947a2346c5369c9836 fix slight mistake in "fix ticketing system error on bootstrap of new install" -- revert to RT 4.0 style query --- 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;