Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
3fb30abd
Commit
3fb30abd
authored
Nov 30, 2016
by
David Lawrence
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tvau-patch-1'
* tvau-patch-1: Bug 1317777 - REST API 1.0 - datetime inputs cause server error
parents
b4a06dd9
b9fa3c35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Server.pm
Bugzilla/API/1_0/Server.pm
+3
-3
No files found.
Bugzilla/API/1_0/Server.pm
View file @
3fb30abd
...
...
@@ -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
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment