Errors on bulk update for enterprise index do not allow user to list all enterprises

This commit is contained in:
Rob Harrington
2014-11-06 11:01:44 +11:00
parent 1506b10d8f
commit 93e3d87fcb
2 changed files with 10 additions and 1 deletions

View File

@@ -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