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