small fix for nil user
This commit is contained in:
parent
e6917a2e37
commit
807b7cef84
|
@ -22,7 +22,7 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<td width="20%"><%= rm.category.title %></td>
|
<td width="20%"><%= rm.category.title %></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% user = User.find(rm.create_user_id) %>
|
<% user = User.find(rm.create_user_id) rescue "" %>
|
||||||
<td width="20%"><%= user.name rescue user.user_name %></td>
|
<td width="20%"><%= user.name rescue user.user_name %></td>
|
||||||
<% if rm.approved %>
|
<% if rm.approved %>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in New Issue