From 5c5d1c59f0a0d16032662e9d61a7c859715efb18 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 9 Jan 2013 17:53:09 -0500 Subject: Fixed filter_wants in Bugzilla::WebService::Bug to work properly with exludes/includes. Founds by automated webservice tests --- Bugzilla/WebService/Util.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Util.pm b/Bugzilla/WebService/Util.pm index feefd47af..dbf670bf7 100644 --- a/Bugzilla/WebService/Util.pm +++ b/Bugzilla/WebService/Util.pm @@ -49,15 +49,14 @@ sub filter_wants ($$;$) { my ($params, $field, $prefix) = @_; my %include = map { $_ => 1 } @{ $params->{'include_fields'} || [] }; my %exclude = map { $_ => 1 } @{ $params->{'exclude_fields'} || [] }; - my $field_temp; $field = "${prefix}.${field}" if $prefix; if (defined $params->{include_fields}) { - return 0 if !$include{$field_temp}; + return 0 if !$include{$field}; } if (defined $params->{exclude_fields}) { - return 0 if $exclude{$field_temp}; + return 0 if $exclude{$field}; } return 1; -- cgit v1.2.3-24-g4f1b