Prevent Notifications on changes to specific fields

Andy anfisher at yahoo.com
Fri Dec 16 18:37:45 UTC 2011


Perfect, thanks!

On 12/10/2011 04:52 AM, Frédéric Buclin wrote:
> 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
> -
> To view or change your list settings, click here:
> <http://bugzilla.org/cgi-bin/mj_wwwusr?user=dev-apps-bugzilla@lists.mozilla.org>

_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list