summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-05-17 00:20:02 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-05-17 00:20:02 +0200
commit566655693317f329ec9d412a5c7bc058276858ba (patch)
tree20e619adeec7ac76a14a1dd438ed0b0cc814cf65 /Bugzilla
parentb58573f7f748b46bd05106aef4e9b4ff3a985025 (diff)
downloadbugzilla-566655693317f329ec9d412a5c7bc058276858ba.tar.gz
bugzilla-566655693317f329ec9d412a5c7bc058276858ba.tar.xz
Bug 556154: process_bug.cgi: move the stuff in the loop after $b->set_all
into Bugzilla::Bug::set_all r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index d926934e6..840ff91d6 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1869,6 +1869,26 @@ sub set_all {
}
}
$self->SUPER::set_all(\%normal_set_all);
+
+ $self->reset_assigned_to if $params->{'reset_assigned_to'};
+ $self->reset_qa_contact if $params->{'reset_qa_contact'};
+
+ foreach my $url (@{ $params->{see_also}->{add} || [] }) {
+ $self->add_see_also($url);
+ }
+ foreach my $url (@{ $params->{see_also}->{remove} || [] }) {
+ $self->remove_see_also($url);
+ }
+
+ # And set custom fields.
+ my @custom_fields = Bugzilla->active_custom_fields;
+ foreach my $field (@custom_fields) {
+ my $fname = $field->name;
+ if (exists $params->{$fname}) {
+ $self->set_custom_field($field, $params->{$fname});
+ }
+ }
+
}
sub set_alias { $_[0]->set('alias', $_[1]); }