Conflicts:

	vendor/built_in_modules/survey/app/controllers/panel/survey/back_end/surveys_controller.rb
This commit is contained in:
Bernie Chiu authored and Manson Wang committed 2013-11-04 10:15:50 +08:00
1 parent 7b6b7e2bed
commit 1f4502185c
1 file changed
+2 -1
@@ -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