diff options
author | David Lawrence <dkl@mozilla.com> | 2016-11-30 22:16:12 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-11-30 22:16:12 +0100 |
commit | 3fb30abd2c1aea9aaeb0389f1102f7405a15ff8b (patch) | |
tree | f8a2a230dba2c44c7793aabb5bc27b414f4f85dc /Bugzilla/API | |
parent | b4a06dd960512528469f375d35e32decfdcbbacd (diff) | |
parent | b9fa3c35b0d7c149fd07126ec3674b4622480b72 (diff) | |
download | bugzilla-3fb30abd2c1aea9aaeb0389f1102f7405a15ff8b.tar.gz bugzilla-3fb30abd2c1aea9aaeb0389f1102f7405a15ff8b.tar.xz |
Merge branch 'tvau-patch-1'
* tvau-patch-1:
Bug 1317777 - REST API 1.0 - datetime inputs cause server error
Diffstat (limited to 'Bugzilla/API')
-rw-r--r-- | Bugzilla/API/1_0/Server.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/API/1_0/Server.pm b/Bugzilla/API/1_0/Server.pm index 4dd0c7ddb..40d6f3b15 100644 --- a/Bugzilla/API/1_0/Server.pm +++ b/Bugzilla/API/1_0/Server.pm @@ -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; @@ -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); } } } |