Default the add component to true

This commit is contained in:
James Brooks 2015-11-03 22:11:44 +00:00
parent edd111451e
commit 013f873500

@ -70,7 +70,7 @@ class ComponentController extends AbstractApiController
Binput::get('link'),
Binput::get('order'),
Binput::get('group_id'),
(bool) Binput::get('enabled')
(bool) Binput::get('enabled', true)
));
} catch (Exception $e) {
throw new BadRequestHttpException();