From 3a8afc2e84808eec239c4634e27855512308eeaa Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Wed, 9 Jun 2021 11:01:14 +0200 Subject: [PATCH] [RefundPayment] Adjust routing and twig after changing the order relation --- src/Resources/config/admin_routing.yml | 4 ++-- src/Resources/views/Order/Admin/RefundPayment/list.html.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Resources/config/admin_routing.yml b/src/Resources/config/admin_routing.yml index 417d162ad..a71690ad6 100644 --- a/src/Resources/config/admin_routing.yml +++ b/src/Resources/config/admin_routing.yml @@ -59,8 +59,8 @@ sylius_refund_order_refund_payment_list: _sylius: template: "@SyliusRefundPlugin/Order/Admin/RefundPayment/list.html.twig" repository: - method: findByOrderNumber - arguments: $orderNumber + method: findByOrder + arguments: expr:service('sylius.repository.order').findOneByNumber($orderNumber) sylius_refund_complete_refund_payment: path: /orders/{orderNumber}/refund-payments/{id}/complete diff --git a/src/Resources/views/Order/Admin/RefundPayment/list.html.twig b/src/Resources/views/Order/Admin/RefundPayment/list.html.twig index cbec05e53..6c873a799 100644 --- a/src/Resources/views/Order/Admin/RefundPayment/list.html.twig +++ b/src/Resources/views/Order/Admin/RefundPayment/list.html.twig @@ -20,7 +20,7 @@ {% if sm_can(refund_payment, 'complete', 'sylius_refund_refund_payment') %} -
+
{% endif %}