fix slight mistake in "fix ticketing system error on bootstrap of new install" -...
authorIvan Kohler <ivan@freeside.biz>
Thu, 9 Feb 2017 00:22:07 +0000 (16:22 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 9 Feb 2017 00:22:07 +0000 (16:22 -0800)
httemplate/elements/notify-tickets.html

index 35917c3..37a4e84 100644 (file)
@@ -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;