Bug 995238 - Incomplete implementation of bug 540818 causes include_fields=_all to not work as expected

r/a=justdave


git-svn-id: svn://10.0.0.236/trunk@265321 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org
2014-04-15 21:15:44 +00:00
parent fde2186494
commit 2a3b0b3e89
3 changed files with 2 additions and 11 deletions

View File

@@ -1 +1 @@
8983
8984

View File

@@ -1 +1 @@
a2abedffec451373e6b24ec1744d3d51be44c4ea
9459f89d2815aa798d9210c03252694398ea8caa

View File

@@ -312,15 +312,6 @@ sub bz_rest_options {
sub rest_include_exclude {
my ($params) = @_;
# _all is same as default columns
if ($params->{'include_fields'}
&& ($params->{'include_fields'} eq '_all'
|| $params->{'include_fields'} eq '_default'))
{
delete $params->{'include_fields'};
delete $params->{'exclude_fields'} if $params->{'exclude_fields'};
}
if ($params->{'include_fields'} && !ref $params->{'include_fields'}) {
$params->{'include_fields'} = [ split(/[\s+,]/, $params->{'include_fields'}) ];
}