Skip to content

Commit

Permalink
Merge pull request #128 from bmic-development/saw-sctr-customer-satis…
Browse files Browse the repository at this point in the history
…faction-bug

SAW - Survey submit button in results email bug
  • Loading branch information
Stuart-Johnson committed Mar 2, 2017
2 parents 506291a + c723202 commit edd6e25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/surveyor_controller.rb
Expand Up @@ -74,7 +74,7 @@ def edit
def update
question_ids_for_dependencies = (r_params || []).map{|k,v| v["question_id"] }.compact.uniq
saved = load_and_update_response_set_with_retries
return redirect_with_message(surveyor_finish, :notice, t('surveyor.completed_survey')) if saved && finish_params
return redirect_with_message(surveyor_finish, :notice, t('surveyor.completed_survey.message')) if saved && finish_params

respond_to do |format|
format.html do
Expand Down
7 changes: 4 additions & 3 deletions app/views/layouts/surveyor/custom.html.haml
Expand Up @@ -67,9 +67,10 @@
.panel-body
.form-group.text-center
= yield
.panel-footer
%a.btn.btn-default#survey-submit-button
= t(:actions)[:submit]
- if action_name == "edit"
.panel-footer
%a.btn.btn-default#survey-submit-button
= t(:actions)[:submit]

.col-sm-2
%footer
Expand Down

0 comments on commit edd6e25

Please sign in to comment.