summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-10-03 19:38:30 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-10-03 19:38:30 +0200
commitf956cb59539b58585a9f6723c04b3b465a53fd51 (patch)
tree63e3558e5c418ce822ea9f4c1d20e83ff57a0cc8
parent268bc33484b25003db28f659d14328798e8830e4 (diff)
downloadbugzilla-f956cb59539b58585a9f6723c04b3b465a53fd51.tar.gz
bugzilla-f956cb59539b58585a9f6723c04b3b465a53fd51.tar.xz
Bug 757935: Bugs with resolution MOVED cannot be edited
r=glob a=LpSolit
-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');