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

KG - ServiceRequestController#remove_service #1030

Merged
merged 10 commits into from Aug 18, 2017

Conversation

kayla-glick
Copy link
Contributor

@kayla-glick kayla-glick commented Jul 27, 2017

@@ -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'
Copy link
Contributor Author

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'
Copy link
Contributor

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 :)

@jwiel86 jwiel86 removed the not ready label Aug 14, 2017
@Stuart-Johnson Stuart-Johnson merged commit a409ea7 into v3.0.0 Aug 18, 2017
@Stuart-Johnson Stuart-Johnson deleted the kg-remove_service_bug branch August 18, 2017 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants