Fix bug.
This commit is contained in:
parent
08c904f73c
commit
cb46139ca8
|
@ -13,6 +13,7 @@ Rails.application.routes.draw do
|
||||||
answer_group.last_modified = survey_answers.last.updated_at
|
answer_group.last_modified = survey_answers.last.updated_at
|
||||||
answer_group.survey_answer_ids = survey_answers.map{|a| a.id}
|
answer_group.survey_answer_ids = survey_answers.map{|a| a.id}
|
||||||
answer_group.save
|
answer_group.save
|
||||||
|
survey_answers.each{|a| a.updated_at = a.created_at;a.save}
|
||||||
end
|
end
|
||||||
survey.already_fix_data = true
|
survey.already_fix_data = true
|
||||||
survey.survey_questions.each do |q|
|
survey.survey_questions.each do |q|
|
||||||
|
|
Loading…
Reference in New Issue