diff --git a/app/Http/Requests/Item/Item.php b/app/Http/Requests/Item/Item.php index 2a0b8fcf7..c252660a8 100644 --- a/app/Http/Requests/Item/Item.php +++ b/app/Http/Requests/Item/Item.php @@ -40,6 +40,7 @@ class Item extends Request 'purchase_price' => 'required', 'quantity' => 'required|integer', 'picture' => 'mimes:' . setting('general.file_types') . '|between:0,' . setting('general.file_size') * 1024, + 'enabled' => 'required', ]; } } diff --git a/resources/views/items/items/create.blade.php b/resources/views/items/items/create.blade.php index 2b81fed9d..04e975471 100644 --- a/resources/views/items/items/create.blade.php +++ b/resources/views/items/items/create.blade.php @@ -20,9 +20,9 @@ {{ Form::textGroup('quantity', trans_choice('items.quantities', 1), 'cubes', ['required' => 'required'], '1') }} - {{ Form::selectGroup('tax_id', trans_choice('general.taxes', 1), 'percent', $taxes, setting('general.default_tax', '')) }} + {{ Form::selectGroup('tax_id', trans_choice('general.taxes', 1), 'percent', $taxes, setting('general.default_tax'), []) }} - {{ Form::selectGroup('category_id', trans_choice('general.categories', 1), 'folder-open-o', $categories) }} + {{ Form::selectGroup('category_id', trans_choice('general.categories', 1), 'folder-open-o', $categories, null, []) }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }} diff --git a/resources/views/items/items/edit.blade.php b/resources/views/items/items/edit.blade.php index 5af248987..4ca220bb8 100644 --- a/resources/views/items/items/edit.blade.php +++ b/resources/views/items/items/edit.blade.php @@ -25,9 +25,9 @@ {{ Form::textGroup('quantity', trans_choice('items.quantities', 1), 'cubes') }} - {{ Form::selectGroup('tax_id', trans_choice('general.taxes', 1), 'percent', $taxes) }} + {{ Form::selectGroup('tax_id', trans_choice('general.taxes', 1), 'percent', $taxes, null, []) }} - {{ Form::selectGroup('category_id', trans_choice('general.categories', 1), 'folder-open-o', $categories) }} + {{ Form::selectGroup('category_id', trans_choice('general.categories', 1), 'folder-open-o', $categories, null, []) }} {{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }}