app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-0.20.3 vs app/controllers/spotlight/roles_controller.rb in blacklight-spotlight-0.21.0
- old
+ new
@@ -23,10 +23,10 @@
if @exhibit.update(exhibit_params)
notice = any_deleted ? t(:'helpers.submit.role.destroyed') : t(:'helpers.submit.role.updated')
redirect_to exhibit_roles_path(@exhibit), notice: notice
else
- flash[:alert] = t(:'helpers.submit.role.batch_error')
+ flash[:alert] = t(:'helpers.submit.role.batch_error', count: exhibit_params[:roles_attributes].size)
render action: 'index'
end
end
protected