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

SAW - Survey submit button in results email bug #128

Merged
merged 1 commit into from
Mar 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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