From: lpsolit%gmail.com <> Date: Sun, 9 Sep 2007 15:02:14 +0000 (+0000) Subject: Regression due to bug 287330: fix failure when processing a bug - Patch by me X-Git-Tag: bugzilla-3.1.2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa7d0b9e6c889b910e3c0d22413a1d92195634e7;p=thirdparty%2Fbugzilla.git Regression due to bug 287330: fix failure when processing a bug - Patch by me --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 631c77caf5..809dae69cc 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1299,7 +1299,7 @@ sub set_alias { $_[0]->set('alias', $_[1]); } sub set_cclist_accessible { $_[0]->set('cclist_accessible', $_[1]); } sub set_custom_field { my ($self, $field, $value) = @_; - if (ref $value eq 'ARRAY' && !$field->type == FIELD_TYPE_MULTI_SELECT) { + if (ref $value eq 'ARRAY' && $field->type != FIELD_TYPE_MULTI_SELECT) { $value = $value->[0]; } ThrowCodeError('field_not_custom', { field => $field }) if !$field->custom;