Skip to content

Commit

Permalink
Merge pull request #1135 from sparc-request/yw-fix-sending-survey-bug
Browse files Browse the repository at this point in the history
fixed sending survey bugs - #151328240
  • Loading branch information
Stuart-Johnson committed Oct 4, 2017
2 parents 3a1cdfb + b0a0d3e commit 1363d26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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?)
flash[:success] = 'Request Updated!'
else
@errors = @sub_service_request.errors
Expand Down

0 comments on commit 1363d26

Please sign in to comment.