Don't send emails for deleted tickets

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
JeromyK
Posts: 22
Joined: 01 Mar 2012, 08:12

Don't send emails for deleted tickets

Post by JeromyK »

Hello everybody

I want to turn off the email notifications for deleted tickets and tried it with the following entry in config_inc.php and it didn't work:

$g_notify_flags['deleted'] = array(
'reporter' => OFF,
'handler' => OFF,
'monitor' => OFF,
'bugnotes' => OFF,
'explicit' => ON,
'threshold_min' => ANYBODY,
'threshold_max' => ANYBODY);

'Didn't work' means: The user gets a email for the ticket deletion. Is the code above incorrect?

Systeminformation
MantisBT: 1.2.17
EMailReportingPlugin: 0.9.0-DEV

Yours sincerely

Jeromy
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Don't send emails for deleted tickets

Post by atrol »

Check / use page "Manage" > "Manage Configuration" > "E-mail Notifications2
a) for "All Projects"
b) for your specific project
Please use Search before posting and read the Manual
JeromyK
Posts: 22
Joined: 01 Mar 2012, 08:12

Re: Don't send emails for deleted tickets

Post by JeromyK »

Hello atrol

Thanks for your reply, works like a charm. But that means, that $g_notify_flags is not in use anymore?
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Don't send emails for deleted tickets

Post by atrol »

$g_notify_flags should still work.
But the settings in config_defaults_inc.php and config_inc.php are just fallback settings if there is no setting in database.
Maybe you used "Manage" > "Manage Configuration" > "E-mail Notifications" some time before.
Please use Search before posting and read the Manual
JeromyK
Posts: 22
Joined: 01 Mar 2012, 08:12

Re: Don't send emails for deleted tickets

Post by JeromyK »

Ok, that make sense.

Thanks for the clarification!
Post Reply