Page 1 of 1

Feature request: Add "Spam" status

Posted: Sun Dec 15, 2024 10:39 am
by Cegri
.
A "Spam" status that will be treated as closed in ticket lists would be useful.

I've solved 99% with the following approach;

- Added "Spam" as a custom status.
- Added the following line to print_tickets.inc.php, line 240;
(6 is the id of the custom status)

Code: Select all

// If no statuses selected, show default (all except RESOLVED)
if ($tmp == 0)
{
	$status = $hesk_settings['statuses'];
	unset($status[3]);
	unset($status[6]); // ADDED BY CEGRI; SPAM
}
The 1% missing is that "Some open tickets you have access to are not shown due to your filters" shows up. Does not bother me enough to try to fix.

Re: Feature request: Add "Spam" status

Posted: Wed Dec 18, 2024 6:43 pm
by Klemen
This would also cause problems elsewhere where counting closed tickets is used, for example, when assigning tickets automatically or in reports.

But yes, I see the value of having multiple "Closed" statuses.