diff --git a/app/Http/Controllers/Api/IncidentController.php b/app/Http/Controllers/Api/IncidentController.php index b301202c..cd705519 100644 --- a/app/Http/Controllers/Api/IncidentController.php +++ b/app/Http/Controllers/Api/IncidentController.php @@ -71,11 +71,11 @@ class IncidentController extends AbstractApiController Binput::get('name'), Binput::get('status'), Binput::get('message', null, false, false), - Binput::get('visible', true), + (bool) Binput::get('visible', true), Binput::get('component_id'), Binput::get('component_status'), - Binput::get('notify', true), - Binput::get('stickied', false), + (bool) Binput::get('notify', true), + (bool) Binput::get('stickied', false), Binput::get('occurred_at'), Binput::get('template'), Binput::get('vars', []), @@ -103,11 +103,11 @@ class IncidentController extends AbstractApiController Binput::get('name'), Binput::get('status'), Binput::get('message'), - Binput::get('visible', true), + (bool) Binput::get('visible', true), Binput::get('component_id'), Binput::get('component_status'), - Binput::get('notify', true), - Binput::get('stickied', false), + (bool) Binput::get('notify', true), + (bool) Binput::get('stickied', false), Binput::get('occurred_at'), Binput::get('template'), Binput::get('vars', [])