Hello, all!
how do I disable showing the task history in notifications about a new task, assignment, and closing of tasks?
don't show history in emails notifications
Moderators: Developer, Contributor
don't show history in emails notifications
- Attachments
-
- Снимок экрана в 2021-03-09 12-13-21.png (17.77 KiB) Viewed 1874 times
Last edited by rondezo on 09 Mar 2021, 09:13, edited 1 time in total.
Re: don't show history in emails notifications
Are you referring to the task plugin or talking about the history records of the issue?
Re: don't show history in emails notifications
You can switch off history by adding this setting to config/config_inc.php:
history_default_visible = OFF;
If you only want to omit it from the emails, a change to core script is required (which is very simple)
history_default_visible = OFF;
If you only want to omit it from the emails, a change to core script is required (which is very simple)
Re: don't show history in emails notifications
i want to omit it from the emails only
Pls , in which file and what should be replaced?
Re: don't show history in emails notifications
Well do remember that you have to make this adjustment every time you do an upgrade
here is the quick and dirty way
Open up /core/email_api.php
find the function email_build_visible_bug_data
find the line : $t_bug_data['history'] = history_get_raw_events_array( $p_bug_id, $p_user_id );
just put a # sign at the beginning of this line, that is all.
You also can look at this topic for another solution:
https://www.mantisbt.org/forums/viewtop ... 15&t=27139
here is the quick and dirty way
Open up /core/email_api.php
find the function email_build_visible_bug_data
find the line : $t_bug_data['history'] = history_get_raw_events_array( $p_bug_id, $p_user_id );
just put a # sign at the beginning of this line, that is all.
You also can look at this topic for another solution:
https://www.mantisbt.org/forums/viewtop ... 15&t=27139
Re: don't show history in emails notifications
Ths!!!! it's worked! SOLVED!cas wrote: ↑09 Mar 2021, 11:14 Well do remember that you have to make this adjustment every time you do an upgrade
here is the quick and dirty way
Open up /core/email_api.php
find the function email_build_visible_bug_data
find the line : $t_bug_data['history'] = history_get_raw_events_array( $p_bug_id, $p_user_id );
just put a # sign at the beginning of this line, that is all.
You also can look at this topic for another solution:
https://www.mantisbt.org/forums/viewtop ... 15&t=27139