From 566655693317f329ec9d412a5c7bc058276858ba Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sun, 16 May 2010 15:20:02 -0700 Subject: Bug 556154: process_bug.cgi: move the stuff in the loop after $b->set_all into Bugzilla::Bug::set_all r=dkl, a=mkanat --- Bugzilla/Bug.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Bugzilla') 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]); } -- cgit v1.2.3-24-g4f1b