Revision 38f854cd
Added by Tomer Brisker almost 6 years ago
app/views/audits/show.html.erb | ||
---|---|---|
<% next if name == "template" %>
|
||
<tr>
|
||
<td><%= name.humanize %></td>
|
||
<% if change.is_a?(Array) %>
|
||
<% if @audit.action == 'update' %>
|
||
<% change.each do |v| %>
|
||
<td><%= id_to_label(name,v,false) %></td>
|
||
<% end %>
|
Also available in: Unified diff
Fixes #23965 - Only save ids for association audits (#5753)
Otherwise, we have issues when trying to check revisions of the audit
since it will fail trying to assign a string to an attribute that
expects an object id.