From dbb084006887dd3a526b5baf951c7e5fcbbc9a3b Mon Sep 17 00:00:00 2001 From: Peter Gyongyosi Date: Wed, 6 Jul 2011 11:54:17 +0200 Subject: [PATCH] Bug 657561: Invalid XMLRPC response generated if an optional custom integer field is empty (we should return undef rather than an empty string when a field is undefined) r/a=LpSolit --- Bugzilla/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 7f0191ca4a..d74275f676 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -4082,7 +4082,7 @@ sub AUTOLOAD { *$AUTOLOAD = sub { my $self = shift; - return $self->{$attr} if defined $self->{$attr}; + return $self->{$attr} if exists $self->{$attr}; $self->{_multi_selects} ||= [Bugzilla->get_fields( {custom => 1, type => FIELD_TYPE_MULTI_SELECT })]; -- 2.47.2