Started work on enabling/disabling components

This commit is contained in:
James Brooks
2015-11-03 21:32:45 +00:00
parent e8a3e18d55
commit edd111451e
10 changed files with 122 additions and 14 deletions

View File

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