From 497c70791868264ddb0499970ea0323988bdcdb0 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 13 Apr 2015 12:38:14 +0800 Subject: Bug 1152818: changing an assignee to nobody@mozilla.org or any .bugs address should automatically reset the status to NEW --- Bugzilla/Object.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Object.pm') diff --git a/Bugzilla/Object.pm b/Bugzilla/Object.pm index 8a7bba1c5..2349b57e6 100644 --- a/Bugzilla/Object.pm +++ b/Bugzilla/Object.pm @@ -520,7 +520,11 @@ sub update { $dbh->bz_start_transaction(); my $old_self = $self->new($self->id); - + + # BMO - allow altering values in a sane way + Bugzilla::Hook::process('object_start_of_update', + { object => $self, old_object => $old_self }); + my @all_columns = $self->UPDATE_COLUMNS; my @hook_columns; Bugzilla::Hook::process('object_update_columns', -- cgit v1.2.3-24-g4f1b