Skip to content

Commit

Permalink
Merge pull request #830 from sparc-request/jtm_questionnaire_controll…
Browse files Browse the repository at this point in the history
…er_fix

Fixed the questionnaire controller's create action [#136213257]
  • Loading branch information
jleonardw9 committed Jan 10, 2017
2 parents 52b13d2 + cd73ef5 commit d1341dd
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -26,8 +26,7 @@ def create
end

def update
@questionnaire.update_attributes(questionnaire_params)
if @questionnaire.save
if @questionnaire.update(questionnaire_params)
redirect_to service_additional_details_questionnaires_path(@service)
else
render :edit
Expand Down

0 comments on commit d1341dd

Please sign in to comment.