aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-09-09 15:02:14 +0000
committerlpsolit%gmail.com <>2007-09-09 15:02:14 +0000
commitfa7d0b9e6c889b910e3c0d22413a1d92195634e7 (patch)
treed57290ed042ee3683484d23334b1ad701b320eb5
parentaa888f2218179d59b4f0b8e51e43b863f1da3e43 (diff)
downloadbugs-fa7d0b9e6c889b910e3c0d22413a1d92195634e7.tar
bugs-fa7d0b9e6c889b910e3c0d22413a1d92195634e7.tar.gz
bugs-fa7d0b9e6c889b910e3c0d22413a1d92195634e7.tar.bz2
bugs-fa7d0b9e6c889b910e3c0d22413a1d92195634e7.tar.xz
bugs-fa7d0b9e6c889b910e3c0d22413a1d92195634e7.zip
Regression due to bug 287330: fix failure when processing a bug - Patch by me
-rwxr-xr-xBugzilla/Bug.pm2
1 files changed, 1 insertions, 1 deletions
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;