]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 657561: Invalid XMLRPC response generated if an optional custom integer field...
authorPeter Gyongyosi <gyp@balabit.hu>
Wed, 6 Jul 2011 09:54:17 +0000 (11:54 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 6 Jul 2011 09:54:17 +0000 (11:54 +0200)
(we should return undef rather than an empty string when a field is undefined)
r/a=LpSolit

Bugzilla/Bug.pm

index 7f0191ca4afa0aea03ebd126045c05f026bf7dd8..d74275f6768676e56cc0009eea775e30bdcb2683 100644 (file)
@@ -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 })];