summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-05-02 14:36:27 +0200
committerlpsolit%gmail.com <>2008-05-02 14:36:27 +0200
commita0ff879d4f771a39e4c25485c1dc6b83be484244 (patch)
treec4ab9009602095b115aab63e068afe1c90d8c21e /Bugzilla
parent35e40627afb0675c23816b040baca7541387c269 (diff)
downloadbugzilla-a0ff879d4f771a39e4c25485c1dc6b83be484244.tar.gz
bugzilla-a0ff879d4f771a39e4c25485c1dc6b83be484244.tar.xz
Bug 431730: Bugs with resolution MOVED cannot be edited anymore - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 0087b3b85..736afbcda 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1853,11 +1853,11 @@ sub set_resolution {
$self->set('resolution', $value);
my $new_res = $self->resolution;
- # MOVED has a special meaning and can only be used when
- # really moving bugs to another installation.
- ThrowCodeError('no_manual_moved') if ($new_res eq 'MOVED' && !$params->{moving});
-
if ($new_res ne $old_res) {
+ # MOVED has a special meaning and can only be used when
+ # really moving bugs to another installation.
+ ThrowCodeError('no_manual_moved') if ($new_res eq 'MOVED' && !$params->{moving});
+
# Clear the dup_id if we're leaving the dup resolution.
if ($old_res eq 'DUPLICATE') {
$self->_clear_dup_id();