Feature request: Add "Spam" status

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Cegri
Posts: 7
Joined: Thu Nov 28, 2024 2:11 pm

Feature request: Add "Spam" status

Post 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.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Feature request: Add "Spam" status

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply