From f154de66f99f3f5932e5a9d240416724c6c5b5ef Mon Sep 17 00:00:00 2001 From: drummer83 Date: Wed, 14 Aug 2024 14:44:59 +0200 Subject: [PATCH] Display admin order page instead of shopfront order page to avoid error 500 --- app/views/subscription_mailer/_summary_detail.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/subscription_mailer/_summary_detail.html.haml b/app/views/subscription_mailer/_summary_detail.html.haml index a566b2396d..53706b2b5a 100644 --- a/app/views/subscription_mailer/_summary_detail.html.haml +++ b/app/views/subscription_mailer/_summary_detail.html.haml @@ -6,7 +6,7 @@ - separator = messages.values.any? ? ": " : ", " - orders.each_with_index do |order, i| - %a{ href: order_url(order) }>= order.number + %a{ href: spree.edit_admin_order_url(order) }>= order.number = separator if messages.values.any? || i < orders.count - 1 - if messages.values.any? = messages[order.id] || t(".no_message_provided")