summaryrefslogtreecommitdiffstats
path: root/extensions/OldBugMove
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-10-03 19:36:06 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-10-03 19:36:06 +0200
commitfa2471c8521f782f83e7e441afab17a52d5abccb (patch)
tree4a27b2baeba4b5e7f968f9432220212feef0370a /extensions/OldBugMove
parent6dd576e5b122ec928a88f731a1b4c71071e4283c (diff)
downloadbugzilla-fa2471c8521f782f83e7e441afab17a52d5abccb.tar.gz
bugzilla-fa2471c8521f782f83e7e441afab17a52d5abccb.tar.xz
Bug 757935: Bugs with resolution MOVED cannot be edited
r=glob a=LpSolit
Diffstat (limited to 'extensions/OldBugMove')
-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 c1fa50a65..9a499d5d0 100644
--- a/extensions/OldBugMove/Extension.pm
+++ b/extensions/OldBugMove/Extension.pm
@@ -118,7 +118,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');