diff --git a/app/views/poll/_show_MCQ_result.html.erb b/app/views/poll/_show_MCQ_result.html.erb index 065a4b6c9..4129f164b 100644 --- a/app/views/poll/_show_MCQ_result.html.erb +++ b/app/views/poll/_show_MCQ_result.html.erb @@ -13,7 +13,7 @@ <% poll_question.poll_votes.where("user_id = #{User.current.id}").each do |answer|%>
+
<%= answer.poll_answer.answer_text == "" ? (answer.vote_text.nil? ? "其他" : answer.vote_text) : answer.poll_answer.answer_text %>
+
<%= answer.poll_answer.answer_text == "" ? (answer.vote_text.nil? ? "其他" : answer.vote_text) : answer.poll_answer.answer_text %>
<%= i + 1 %>.<%= poll_answer.answer_text%>
-+
<%= get_anwser_vote_text(poll_question.id,User.current.id,poll_answer.id).html_safe%>
+
<%= get_anwser_vote_text poll_question.id,User.current.id%>