Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jw expanding email spec coverage #57

Merged
merged 12 commits into from
Feb 7, 2017
3 changes: 1 addition & 2 deletions lib/notifier_logic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def send_user_notifications(request_amendment: false)
else
approval = false
end

# send e-mail to all folks with view and above
@service_request.protocol.project_roles.each do |project_role|
next if project_role.project_rights == 'none' || project_role.identity.email.blank?
Expand Down Expand Up @@ -200,8 +199,8 @@ def send_individual_service_provider_notification(sub_service_request, service_p
request_for_grant_billing_form = RequestGrantBillingPdf.generate_pdf service_request
attachments["request_for_grant_billing_#{sub_service_request.service_request.id}.pdf"] = request_for_grant_billing_form
end

ssr_id = sub_service_request.id

Notifier.notify_service_provider(service_provider, @service_request, attachments, @current_user, ssr_id, audit_report, ssr_destroyed, request_amendment).deliver_now
end

Expand Down