summaryrefslogtreecommitdiffstats
path: root/extensions/ComponentWatching
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-06-02 08:07:48 +0200
committerByron Jones <glob@mozilla.com>2015-06-02 08:07:48 +0200
commita3a2ced967bff8a0e8c6bd1ca2d1ef480c1565fe (patch)
tree0f130785e160c3929ff436a1cb63f87ed69a7384 /extensions/ComponentWatching
parentc9cb3d462fe025679ac7829846aaed0e397a7fb0 (diff)
downloadbugzilla-a3a2ced967bff8a0e8c6bd1ca2d1ef480c1565fe.tar.gz
bugzilla-a3a2ced967bff8a0e8c6bd1ca2d1ef480c1565fe.tar.xz
Bug 1168392: Automatic watch user creation not working when editing component without prior watch user account
Diffstat (limited to 'extensions/ComponentWatching')
-rw-r--r--extensions/ComponentWatching/Extension.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/ComponentWatching/Extension.pm b/extensions/ComponentWatching/Extension.pm
index 1f507493f..318de5e1a 100644
--- a/extensions/ComponentWatching/Extension.pm
+++ b/extensions/ComponentWatching/Extension.pm
@@ -165,10 +165,12 @@ sub object_update_columns {
push(@$columns, 'watch_user');
+ # add the user if not yet exists and user chooses 'automatic'
+ $self->_create_watch_user();
+
# editcomponents.cgi doesn't call set_all, so we have to do this here
my $input = Bugzilla->input_params;
$object->set('watch_user', $input->{watch_user});
- $self->_create_watch_user();
}
sub object_validators {