mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
13221 Add spec for checking flash error is shown when editing a shipped order
This commit is contained in:
@@ -165,7 +165,7 @@ module Spree
|
||||
def refuse_changing_shipped_orders
|
||||
return unless @order.shipped?
|
||||
|
||||
flash[:error] = I18n.t("admin.orders.cannot_add_item_to_shipped_order")
|
||||
flash[:error] = I18n.t("spree.admin.orders.add_product.cannot_add_item_to_shipped_order")
|
||||
redirect_to spree.edit_admin_order_path(@order)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user