From b0116846fb1584d9dab06521e564159d3c62f347 Mon Sep 17 00:00:00 2001 From: "L.Regene" <125754132+Regene27@users.noreply.github.com> Date: Thu, 5 Dec 2024 07:57:57 +0700 Subject: [PATCH] Close #2110 Billing pop up not load bug (#2111) --- app/views/spree/billing/payments/_list.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/spree/billing/payments/_list.html.erb b/app/views/spree/billing/payments/_list.html.erb index b8596ac6f..a37885d72 100644 --- a/app/views/spree/billing/payments/_list.html.erb +++ b/app/views/spree/billing/payments/_list.html.erb @@ -32,10 +32,10 @@ <% if action == 'credit' %> <%= link_to_with_icon('exit.svg', Spree.t(:refund), new_billing_order_payment_refund_path(@order, payment), no_text: true, class: "btn btn-light btn-sm") if can?(:create, Spree::Refund) %> <% elsif action == 'capture' %> - <%= link_to_with_icon("#{action}.svg", Spree.t(action), nil, no_text: true, data: { toggle: 'modal', target: "#capture-modal-#{@order.id}" }, class: "btn btn-light btn-sm") %> + <%= link_to_with_icon("#{action}.svg", Spree.t(action), nil, no_text: true, data: { toggle: 'modal', target: "#capture-modal-#{payment.id}" }, class: "btn btn-light btn-sm") %> <%= render partial: 'spree/billing/shared/pop_up_confirmation', locals: { action: action, order: @order, payment: payment } %> <% elsif action == 'void' %> - <%= link_to_with_icon("#{action}.svg", Spree.t(action), nil, no_text: true, data: { toggle: 'modal', target: "#void-modal-#{@order.id}" }, class: "btn btn-light btn-sm") %> + <%= link_to_with_icon("#{action}.svg", Spree.t(action), nil, no_text: true, data: { toggle: 'modal', target: "#void-modal-#{payment.id}" }, class: "btn btn-light btn-sm") %> <%= render partial: 'spree/billing/shared/pop_up_confirmation', locals: { action: action, order: @order, payment: payment } %> <% end %> <% end %>