Merge pull request #3220 from gazben/patch-1

Add bool cast to boolean Incident parameters
This commit is contained in:
James Brooks 2018-09-05 09:24:28 +01:00 committed by GitHub
commit a740d5c8c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,11 +71,11 @@ class IncidentController extends AbstractApiController
Binput::get('name'), Binput::get('name'),
Binput::get('status'), Binput::get('status'),
Binput::get('message', null, false, false), Binput::get('message', null, false, false),
Binput::get('visible', true), (bool) Binput::get('visible', true),
Binput::get('component_id'), Binput::get('component_id'),
Binput::get('component_status'), Binput::get('component_status'),
Binput::get('notify', true), (bool) Binput::get('notify', true),
Binput::get('stickied', false), (bool) Binput::get('stickied', false),
Binput::get('occurred_at'), Binput::get('occurred_at'),
Binput::get('template'), Binput::get('template'),
Binput::get('vars', []), Binput::get('vars', []),
@ -103,11 +103,11 @@ class IncidentController extends AbstractApiController
Binput::get('name'), Binput::get('name'),
Binput::get('status'), Binput::get('status'),
Binput::get('message'), Binput::get('message'),
Binput::get('visible', true), (bool) Binput::get('visible', true),
Binput::get('component_id'), Binput::get('component_id'),
Binput::get('component_status'), Binput::get('component_status'),
Binput::get('notify', true), (bool) Binput::get('notify', true),
Binput::get('stickied', false), (bool) Binput::get('stickied', false),
Binput::get('occurred_at'), Binput::get('occurred_at'),
Binput::get('template'), Binput::get('template'),
Binput::get('vars', []) Binput::get('vars', [])