From 8eb8e1b1e5017dcb4e46c6f19cc29b43e283a610 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 25 Jul 2017 15:42:56 +0800 Subject: [PATCH] fix --- app/views/admin/tickets/_response.html.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/admin/tickets/_response.html.erb b/app/views/admin/tickets/_response.html.erb index 381fb6d..dead16e 100644 --- a/app/views/admin/tickets/_response.html.erb +++ b/app/views/admin/tickets/_response.html.erb @@ -40,8 +40,13 @@ end end %>
- " src="<%= avatar %>" data-avatar-id="<%= user.id.to_s %>"> - <%= user.name rescue ""%> + <% if !user.nil? %> + " src="<%= avatar %>" data-avatar-id="<%= user.id.to_s %>"> + <%= user.name rescue ""%> + <% else %> + + <%= user.name rescue "Member was deleted"%> + <% end %>
<% end %>