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
KG - ServiceRequestController#remove_service #1030
Conversation
…to kg-remove_service_bug
@@ -188,7 +188,7 @@ def authorize_identity | |||
return true | |||
end | |||
# the service request is in first draft and has yet to be submitted (catalog page only) | |||
elsif @service_request.status == 'first_draft' && controller_name == 'service_requests' && action_name == 'catalog' | |||
elsif @service_request.status == 'first_draft' && controller_name != 'protocols' && action_name != 'protocol' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged from #1029 to be able to test
notifier_logic.ssr_deletion_emails(ssr, ssr_destroyed: true, request_amendment: false) | ||
ssr.destroy | ||
if ssr.line_items.any? | ||
ssr.update_attribute(:status, 'draft') unless ssr.status == 'first_draft' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kyle-glick Get with me when you're back in town about lines 215-216. This impacts how emails are sent out. I'll explain further in person :)
Pivotal:
https://www.pivotaltracker.com/story/show/149644637