summaryrefslogtreecommitdiffstats
path: root/extensions/OldBugMove/Extension.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-10-09 21:01:58 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-10-09 21:01:58 +0200
commitb0f9f0819ceaeefa2ed2b4ba028d851d1de6146b (patch)
tree42c25087002db6cbec187a8f8d6ad111589107df /extensions/OldBugMove/Extension.pm
parentfca7f7eda42cecf08252d710a16c4ad001ba204b (diff)
parentf9e41025a332f57b3d9cabed8418e208fbd90400 (diff)
downloadbugzilla-b0f9f0819ceaeefa2ed2b4ba028d851d1de6146b.tar.gz
bugzilla-b0f9f0819ceaeefa2ed2b4ba028d851d1de6146b.tar.xz
merged with bugzilla/4.2
Diffstat (limited to 'extensions/OldBugMove/Extension.pm')
-rw-r--r--extensions/OldBugMove/Extension.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/OldBugMove/Extension.pm b/extensions/OldBugMove/Extension.pm
index b12d36a9a..d1b953748 100644
--- a/extensions/OldBugMove/Extension.pm
+++ b/extensions/OldBugMove/Extension.pm
@@ -132,7 +132,9 @@ sub _check_bug_resolution {
my $original_validator = shift;
my ($invocant, $resolution) = @_;
- if ($resolution eq 'MOVED' and !Bugzilla->input_params->{'oldbugmove'}) {
+ if ($resolution eq 'MOVED' && $invocant->resolution ne 'MOVED'
+ && !Bugzilla->input_params->{'oldbugmove'})
+ {
# MOVED has a special meaning and can only be used when
# really moving bugs to another installation.
ThrowUserError('oldbugmove_no_manual_move');