app/controllers/concerns/decidim/consultations/needs_question.rb in decidim-consultations-0.24.3 vs app/controllers/concerns/decidim/consultations/needs_question.rb in decidim-consultations-0.25.0.rc1
- old
+ new
@@ -110,10 +110,10 @@
def current_question_index
current_consultation_questions.find_index(current_question)
end
def current_published_question_index
- current_consultation_published_questions.find_index(current_question)
+ current_consultation_published_questions.find_index(current_question) || -1
end
end
end
end
end