|
|
|
@ -130,7 +130,6 @@ private
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def get_next_page_path(form, previous_page, case_log = {}) |
|
|
|
|
questions_for_page = form.questions_for_page(previous_page) |
|
|
|
|
content = form.all_pages[previous_page] |
|
|
|
|
|
|
|
|
|
if content.key?("conditional_route_to") |
|
|
|
@ -138,7 +137,6 @@ private
|
|
|
|
|
if conditions.keys.all? { |x| case_log[x].present? } && conditions.all? { |k, v| v.include?(case_log[k]) } |
|
|
|
|
return "case_log_#{route}_path" |
|
|
|
|
end |
|
|
|
|
# raise "" |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
form.next_page_redirect_path(previous_page) |
|
|
|
|