So there are agents that have that queue on subscription.
These agents will receive notifications even when a ticket is already created in a closed state.
As there is no configuration setting for this you can either define a different queue for the closed tickets,
or you can hack the file in Kernel/System/Ticket/Article.pm
Search for "UserSendNewTicketNotification" and right below the line containing it add
Code: Select all
$Self->{DBObject}->Prepare( SQL => "SELECT ticket_state_type.name FROM ticket_state_type,ticket_state,ticket WHERE ticket_state.type_id=ticket_state_type.id AND ticket_state.id=ticket_state_id AND ticket.id=" . $Param{TicketID} );
my @Skip_Check = $Self->{DBObject}->FetchrowArray();
next if $Skip_Check[0] eq 'closed';