Prevent Notifications on changes to specific fields
Frédéric Buclin
lpsolit at gmail.com
Sat Dec 10 12:52:56 UTC 2011
Le 10. 12. 11 02:39, Andy a écrit :
> I figure this is probably a long shot, but is there any way (either
> through the API or not), of preventing Bugzilla from sending out
> notifications on changes to a given (custom) field?
Edit the file Bugzilla/User.pm and add code into the wants_bug_mail()
subroutine to exclude this custom field.
The current code has:
foreach my $change (@$fieldDiffs) {
my $fieldName = $change->{field_name};
Just add:
next if $fieldName eq 'cf_your_custom_field_name';
right after the two lines above, where cf_your_custom_field_name must be
replaced by the real name of your custom field.
LpSolit
More information about the developers
mailing list