Skip to content

Commit

Permalink
[RefundPayment] Adjust routing and twig after changing the order rela…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
GSadee committed Jun 9, 2021
1 parent 5a3915f commit 66ffcd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Resources/config/admin_routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</td>
<td class="aligned collapsing">
{% if sm_can(refund_payment, 'complete', 'sylius_refund_refund_payment') %}
<form action="{{ path('sylius_refund_complete_refund_payment', {'orderNumber': refund_payment.orderNumber, 'id': refund_payment.id}) }}" method="POST">
<form action="{{ path('sylius_refund_complete_refund_payment', {'orderNumber': refund_payment.order.number, 'id': refund_payment.id}) }}" method="POST">
<button class="ui icon labeled yellow loadable button"><i class="check icon"></i> {{ 'sylius.ui.complete'|trans }}</button>
</form>
{% endif %}
Expand Down

0 comments on commit 66ffcd1

Please sign in to comment.