Skip to content

Commit

Permalink
remove redundant route from credit memo
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKasp committed Jan 10, 2020
1 parent d4fd79c commit 67b99b6
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 68 deletions.
10 changes: 0 additions & 10 deletions src/Resources/config/admin_routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,3 @@ sylius_refund_admin_credit_memo_send:
methods: [GET]
defaults:
_controller: Sylius\RefundPlugin\Action\Admin\SendCreditMemoAction

sylius_refund_admin_order_show_by_number:
path: /orders/by-number/{number}
methods: [GET]
defaults:
_controller: Sylius\RefundPlugin\Ui\RedirectToOrderShowAction
_sylius:
section: admin
permission: true
alias: refund_plugin
2 changes: 1 addition & 1 deletion src/Resources/config/app/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sylius_grid:
orderNumber:
type: twig
label: sylius.ui.order
path: order.number
path: .
sortable: ~
options:
template: "@SyliusRefundPlugin/Order/Grid/Field/number.html.twig"
Expand Down
5 changes: 0 additions & 5 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@
<argument type="service" id="sylius.manager.order" />
</service>

<service id="Sylius\RefundPlugin\Ui\RedirectToOrderShowAction">
<argument type="service" id="router" />
<argument type="service" id="sylius.repository.order" />
</service>

<service id="Sylius\RefundPlugin\Checker\OrderFullyRefundedTotalChecker">
<argument type="service" id="Sylius\RefundPlugin\Provider\OrderRefundedTotalProvider" />
</service>
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/Order/Grid/Field/number.html.twig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="{{ path('sylius_refund_admin_order_show_by_number', {'number': data}) }}">#{{ data }}</a>
<a href="{{ path('sylius_admin_order_show', {'id': data.order.id}) }}">#{{ data.order.number }}</a>
51 changes: 0 additions & 51 deletions src/Ui/RedirectToOrderShowAction.php

This file was deleted.

0 comments on commit 67b99b6

Please sign in to comment.