Skip to content

Commit

Permalink
Make order customer email links consistent
Browse files Browse the repository at this point in the history
Previously the order table would show user account links for
users who had accounts, and mailto links for those who did not.
This inconsistent link behavior is replaced with plaintext for
users who do not have accounts.
  • Loading branch information
brchristian committed Sep 21, 2020
1 parent 0c7020f commit fe1a18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/views/spree/admin/orders/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<% if order.user %>
<%= link_to order.email, edit_admin_user_path(order.user) %>
<% else %>
<%= mail_to order.email %>
<%= order.email %>
<% end %>
</td>
<td class="align-right"><%= order.display_total.to_html %></td>
Expand Down

0 comments on commit fe1a18a

Please sign in to comment.