summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Object.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-13 06:38:14 +0200
committerByron Jones <glob@mozilla.com>2015-04-13 06:38:14 +0200
commit497c70791868264ddb0499970ea0323988bdcdb0 (patch)
tree500409caf735df3a138b6551e9bd0bcbbe2fc399 /Bugzilla/Object.pm
parent7c5fdd252e1f7dbef712da780ce39153b1e015df (diff)
downloadbugzilla-497c70791868264ddb0499970ea0323988bdcdb0.tar.gz
bugzilla-497c70791868264ddb0499970ea0323988bdcdb0.tar.xz
Bug 1152818: changing an assignee to nobody@mozilla.org or any .bugs address should automatically reset the status to NEW
Diffstat (limited to 'Bugzilla/Object.pm')
-rw-r--r--Bugzilla/Object.pm6
1 files changed, 5 insertions, 1 deletions
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',