small fix for deleted users
This commit is contained in:
parent
ea7800ed64
commit
0b70ae0ebf
|
@ -35,8 +35,8 @@
|
|||
<% if !ticket.taken_by.nil? %>
|
||||
<span class="ticket-author label label-primary">
|
||||
<i class="icon-user"></i>
|
||||
<% user = User.find(ticket.taken_by) %>
|
||||
<%= user.name if !user.nil? %>
|
||||
<% user = User.find(ticket.taken_by) rescue nil %>
|
||||
<%= !user.nil? ? user.name : "User Deleted" %>
|
||||
</span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue