From e217d354dc3b5d078a91cff7a9d6e9ba11bd55c8 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 15 Dec 2015 04:14:19 -0800 Subject: [PATCH] Fixed bug in strict mode for fieldsets --- app/controllers/admin/ModelsController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/ModelsController.php b/app/controllers/admin/ModelsController.php index ed4c3ed762..0204ba3d1f 100755 --- a/app/controllers/admin/ModelsController.php +++ b/app/controllers/admin/ModelsController.php @@ -116,7 +116,10 @@ class ModelsController extends AdminController $model->manufacturer_id = e(Input::get('manufacturer_id')); $model->category_id = e(Input::get('category_id')); $model->user_id = Sentry::getId(); - $model->fieldset_id = e(Input::get('custom_fieldset')); + if (Input::get('custom_fieldset')!='') { + $model->fieldset_id = e(Input::get('custom_fieldset')); + } + //$model->show_mac_address = e(Input::get('show_mac_address', '0'));