Conflicts:

	vendor/built_in_modules/survey/app/controllers/panel/survey/back_end/surveys_controller.rb
This commit is contained in:
Bernie Chiu 2013-10-25 16:29:17 +08:00 committed by Manson Wang
parent 7b6b7e2bed
commit 1f4502185c
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class Panel::Survey::BackEnd::SurveysController < OrbitBackendController
question.update_attributes(title: titles[index])
end
@survey.survey_answers.destroy
@survey_answers.destroy
# End of speadsheet
@end_row = @spreadsheet.count
@ -117,6 +117,7 @@ class Panel::Survey::BackEnd::SurveysController < OrbitBackendController
# Modify multiline options if changed
@survey_questions.each_with_index do |question, index|
case question.type
when ::SurveyQuestion::Radio, ::SurveyQuestion::Select
((question.survey_question_options.count + 2)..@end_row).each do |row|
@answer_model = @survey.survey_answers.new