mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Errors on bulk update for enterprise index do not allow user to list all enterprises
This commit is contained in:
@@ -42,7 +42,7 @@ module Admin
|
||||
end
|
||||
|
||||
def bulk_update
|
||||
@enterprise_set = EnterpriseSet.new(params[:enterprise_set])
|
||||
@enterprise_set = EnterpriseSet.new(params[:enterprise_set].merge collection: collection)
|
||||
if @enterprise_set.save
|
||||
flash[:success] = 'Enterprises updated successfully'
|
||||
redirect_to main_app.admin_enterprises_path
|
||||
|
||||
Reference in New Issue
Block a user