Commit 3fb30abd authored by David Lawrence's avatar David Lawrence

Merge branch 'tvau-patch-1'

* tvau-patch-1: Bug 1317777 - REST API 1.0 - datetime inputs cause server error
parents b4a06dd9 b9fa3c35
...@@ -12,7 +12,7 @@ use strict; ...@@ -12,7 +12,7 @@ use strict;
use warnings; use warnings;
use Bugzilla::API::1_0::Constants qw(API_AUTH_HEADERS); use Bugzilla::API::1_0::Constants qw(API_AUTH_HEADERS);
use Bugzilla::API::1_0::Util qw(taint_data fix_credentials api_include_exclude); use Bugzilla::API::1_0::Util qw(taint_data fix_credentials api_include_exclude datetime_format_inbound);
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Error; use Bugzilla::Error;
...@@ -251,10 +251,10 @@ sub _params_check { ...@@ -251,10 +251,10 @@ sub _params_check {
my $value = $params->{$field}; my $value = $params->{$field};
if (ref $value eq 'ARRAY') { if (ref $value eq 'ARRAY') {
$params->{$field} = $params->{$field} =
[ map { $self->datetime_format_inbound($_) } @$value ]; [ map { datetime_format_inbound($_) } @$value ];
} }
else { else {
$params->{$field} = $self->datetime_format_inbound($value); $params->{$field} = datetime_format_inbound($value);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment