Skip to content

Commit

Permalink
issue: Filter Events
Browse files Browse the repository at this point in the history
This addresses issue 6059 where Ticket Filter processing stops accurately
but the Thread Events are blindly added for any Filters that match the
criteria. This is due to not checking the current Filter in the iteration
for `stopOnMatch()`. This adds a check for `stopOnMatch()` and if `true` we
will break the loop.
  • Loading branch information
JediKev committed Mar 21, 2022
1 parent 1a64b84 commit 8c9b392
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/class.ticket.php
Expand Up @@ -4031,6 +4031,7 @@ protected function filterTicketData($origin, $vars, $forms, $user=false, $postCr
$postCreate->logEvent($description['type'], $description['desc'], $username);

}
if ($f->stopOnMatch()) break;
}
}
}
Expand Down

0 comments on commit 8c9b392

Please sign in to comment.