diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb index cd066bac84..73dbbd24bc 100644 --- a/app/controllers/items_controller.rb +++ b/app/controllers/items_controller.rb @@ -51,6 +51,7 @@ def create # Define a @item to be used in the `new` action to be rendered with # the provided parameters. This is required to render the page again # with the error + the invalid parameters + @item_categories = current_organization.item_categories @item = current_organization.items.new(item_params) flash[:error] = result.error.record.errors.full_messages.to_sentence render action: :new