app/controllers/concerns/decidim/consultations/needs_question.rb in decidim-consultations-0.26.1 vs app/controllers/concerns/decidim/consultations/needs_question.rb in decidim-consultations-0.26.2

- old
+ new

@@ -80,11 +80,13 @@ alias current_participatory_space current_question private def detect_question + return unless request.env["current_question"] || params[:question_slug] || params[:slug] + request.env["current_question"] || - OrganizationQuestions.for(current_organization).find_by(slug: params[:question_slug] || params[:slug]) + OrganizationQuestions.for(current_organization).find_by!(slug: params[:question_slug] || params[:slug]) end def detect_consultation request.env["current_consultation"] || organization_consultations.find_by(slug: params[:consultation_slug])