Improvements to new menu product category editing and adding new
This commit is contained in:
@@ -76,7 +76,7 @@ module Suppliers
|
||||
respond_to do |format|
|
||||
if @product_category.save
|
||||
format.html { redirect_to [:suppliers, :product_categories], notice: t('action.create.successfull', model: ProductCategory.model_name.human) }
|
||||
format.json { render json: @product_category, status: :created, location: @product_category }
|
||||
format.json { render json: @product_category, status: :created }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @product_category.errors, status: :unprocessable_entity }
|
||||
|
||||
Reference in New Issue
Block a user