From e7adb00dc1e1b68a4090c2b342d8b34b675e7b42 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 4 Oct 2017 13:22:47 +0200 Subject: [PATCH] Fix empty questions in new RFC UI --- app/views/request_for_comments/show.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index eb88caf1..d3751d0b 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -29,7 +29,8 @@ <%= t('activerecord.attributes.request_for_comments.question')%>
- <%= @request_for_comment.question or t('request_for_comments.no_question')%> + <% question = @request_for_comment.question %> + <%= question.nil? or question.empty? ? t('request_for_comments.no_question') : question %>