|
|
|
@ -206,7 +206,6 @@ class Form |
|
|
|
radio_questions_recalculated = routed_and_not_routed_questions_by_type(log, type: "radio") |
|
|
|
radio_questions_recalculated = routed_and_not_routed_questions_by_type(log, type: "radio") |
|
|
|
newly_not_routed_radio_questions = radio_questions_recalculated[:not_routed].reject { |question| radio_questions[:not_routed].include?(question) } |
|
|
|
newly_not_routed_radio_questions = radio_questions_recalculated[:not_routed].reject { |question| radio_questions[:not_routed].include?(question) } |
|
|
|
radio_clearing_pass(log, radio_questions_recalculated[:routed], newly_not_routed_radio_questions) |
|
|
|
radio_clearing_pass(log, radio_questions_recalculated[:routed], newly_not_routed_radio_questions) |
|
|
|
|
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def reset_free_user_input_questions_if_not_routed(log) |
|
|
|
def reset_free_user_input_questions_if_not_routed(log) |
|
|
|
@ -250,7 +249,6 @@ class Form |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def routed_and_not_routed_questions_by_type(log, type: nil, current_user: nil) |
|
|
|
def routed_and_not_routed_questions_by_type(log, type: nil, current_user: nil) |
|
|
|
questions_by_type = if type |
|
|
|
questions_by_type = if type |
|
|
|
questions.reject { |q| q.type != type || q.disable_clearing_if_not_routed_or_dynamic_answer_options } |
|
|
|
questions.reject { |q| q.type != type || q.disable_clearing_if_not_routed_or_dynamic_answer_options } |
|
|
|
|