mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Merge pull request #11981 from bouaik/fix-flash-type-when-updating-entreprise-fees
Fix flash type when updating entreprise fees
This commit is contained in:
@@ -38,7 +38,8 @@ module Admin
|
||||
@enterprise_fee_set = EnterpriseFeesBulkUpdate.new(params)
|
||||
|
||||
if @enterprise_fee_set.save
|
||||
redirect_to redirect_path, notice: I18n.t(:enterprise_fees_update_notice)
|
||||
flash[:success] = I18n.t(:enterprise_fees_update_notice)
|
||||
redirect_to redirect_path
|
||||
else
|
||||
redirect_to redirect_path,
|
||||
flash: { error: @enterprise_fee_set.errors.full_messages.to_sentence }
|
||||
|
||||
Reference in New Issue
Block a user