diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-10-15 16:17:08 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-06 11:30:11 +0100 |
commit | bc7a9cfb1edcd4af6969a96403096ced89b527c9 (patch) | |
tree | 3ec40f953ab38d7f0b3d32861eb5873898e270de | |
parent | ee884993aae404c92c6114b1d044d2e332d25fe1 (diff) | |
download | bugzilla-bc7a9cfb1edcd4af6969a96403096ced89b527c9.tar.gz bugzilla-bc7a9cfb1edcd4af6969a96403096ced89b527c9.tar.xz |
WIP: ext/ComponentWatching: Allow to pass watch_user only to Component->create without input_params
Necessary for Bugzilla::Migrate.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | extensions/ComponentWatching/Extension.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/ComponentWatching/Extension.pm b/extensions/ComponentWatching/Extension.pm index 654094191..9e61b4919 100644 --- a/extensions/ComponentWatching/Extension.pm +++ b/extensions/ComponentWatching/Extension.pm @@ -175,7 +175,7 @@ sub object_before_create { } else { my $input = Bugzilla->input_params; - $params->{watch_user} = $input->{watch_user}; + $params->{watch_user} = $input->{watch_user} // $params->{watch_user}; $self->_create_watch_user(); } } |