Merge pull request #1585 from snipe/null_custom_fieldset_ok
Allow setting 'no custom fields' from having a customfieldset enabled
This commit is contained in:
@@ -243,7 +243,9 @@ class ModelsController extends AdminController
|
||||
$model->modelno = e(Input::get('modelno'));
|
||||
$model->manufacturer_id = e(Input::get('manufacturer_id'));
|
||||
$model->category_id = e(Input::get('category_id'));
|
||||
if (Input::get('custom_fieldset')!='') {
|
||||
if (Input::get('custom_fieldset')=='') {
|
||||
$model->fieldset_id = null;
|
||||
} else {
|
||||
$model->fieldset_id = e(Input::get('custom_fieldset'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user