Skip to content

Commit

Permalink
Merge branch 'tvau-patch-1'
Browse files Browse the repository at this point in the history
* tvau-patch-1:
  Bug 1317777 - REST API 1.0 - datetime inputs cause server error
  • Loading branch information
dklawren committed Nov 30, 2016
2 parents b4a06dd + b9fa3c3 commit 3fb30ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Bugzilla/API/1_0/Server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use strict;
use warnings;

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::Error;
Expand Down Expand Up @@ -251,10 +251,10 @@ sub _params_check {
my $value = $params->{$field};
if (ref $value eq 'ARRAY') {
$params->{$field} =
[ map { $self->datetime_format_inbound($_) } @$value ];
[ map { datetime_format_inbound($_) } @$value ];
}
else {
$params->{$field} = $self->datetime_format_inbound($value);
$params->{$field} = datetime_format_inbound($value);
}
}
}
Expand Down

0 comments on commit 3fb30ab

Please sign in to comment.