diff options
author | David Lawrence <dkl@mozilla.com> | 2014-07-18 18:21:54 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-07-18 18:21:54 +0200 |
commit | 809f7531ca073da9f543a59769d1dab617915d71 (patch) | |
tree | 422058c496ea9650e8a09f596cd19091ca8f38e5 /extensions/BzAPI/lib | |
parent | 4f6697974d88b152afe62f0d1b844dfd6a4d1f3d (diff) | |
download | bugzilla-809f7531ca073da9f543a59769d1dab617915d71.tar.gz bugzilla-809f7531ca073da9f543a59769d1dab617915d71.tar.xz |
Bug 1026416: "blocks" field is present as empty string when empty, rather than null or []
Diffstat (limited to 'extensions/BzAPI/lib')
-rw-r--r-- | extensions/BzAPI/lib/Util.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/BzAPI/lib/Util.pm b/extensions/BzAPI/lib/Util.pm index f9d244c96..e783a1584 100644 --- a/extensions/BzAPI/lib/Util.pm +++ b/extensions/BzAPI/lib/Util.pm @@ -205,7 +205,7 @@ sub fix_bug { else { if (ref $data->{$key} eq 'ARRAY' && !@{$data->{$key}}) { # Return empty string if blocks or depends_on is empty - if ($key eq 'depends_on' || $key eq 'blocks') { + if ($method eq 'Bug.search' && ($key eq 'depends_on' || $key eq 'blocks')) { $data->{$key} = ''; } else { |