mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
Return an error code when bulk product edit save fails
This commit is contained in:
@@ -14,7 +14,7 @@ Spree::Admin::ProductsController.class_eval do
|
||||
if product_set.save
|
||||
redirect_to "/api/products/managed?template=bulk_index&page=1&per_page=500"
|
||||
else
|
||||
render :nothing => true
|
||||
render :nothing => true, :status => 418
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user