From fa7d0b9e6c889b910e3c0d22413a1d92195634e7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 9 Sep 2007 15:02:14 +0000 Subject: Regression due to bug 287330: fix failure when processing a bug - Patch by me --- Bugzilla/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 631c77caf..809dae69c 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; -- cgit v1.2.3-24-g4f1b