added nil check for customer (if a customer is deleted after a merge)

This commit is contained in:
2026-02-11 19:43:52 -05:00
parent d22fcd4f66
commit a30d8f56d8

View File

@@ -8,7 +8,7 @@
<tr> <tr>
<th><%= t(:field_customer)%></th> <th><%= t(:field_customer)%></th>
<td><%= link_to vehicle.customer.name, customer_path(vehicle.customer) %></td> <td><%= link_to(vehicle.customer.name, customer_path(vehicle.customer)) if vehicle.customer %></td>
</tr> </tr>
<tr> <tr>