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

fixed sending survey bugs - #151328240 #1135

Merged
merged 1 commit into from Oct 4, 2017

Conversation

ying-pbrc
Copy link
Collaborator

@@ -84,7 +84,7 @@ def show

def update
if @sub_service_request.update_attributes(sub_service_request_params)
@sub_service_request.distribute_surveys if @sub_service_request.is_complete?
@sub_service_request.distribute_surveys if (@sub_service_request.status == 'complete' && sub_service_request_params[:status].present?)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think instead of checking that the status is only 'complete', this should probably check if the status is in FINISHED_STATUSES

if (FINISHED_STATUSES.include?(@sub_service_request.status) && sub_service_request_params[:status].present?)

@ying-pbrc
Copy link
Collaborator Author

ying-pbrc commented Sep 25, 2017 via email

@Stuart-Johnson Stuart-Johnson merged commit 1363d26 into v3.0.0b Oct 4, 2017
@Stuart-Johnson Stuart-Johnson deleted the yw-fix-sending-survey-bug branch October 4, 2017 14:27
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

6 participants