Skip to content

Commit

Permalink
Fix grid sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrzytki committed Jun 19, 2024
1 parent 1f168f3 commit 74e8fa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Resources/config/grids/bitbag_shipping_export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ sylius_grid:
class: "%bitbag.model.shipping_export.class%"
repository:
method: createListQueryBuilder
arguments: ["expr:service('sylius.context.locale').getLocaleCode()"]
sorting:
shipment: desc
fields:
order:
type: twig
label: sylius.ui.order
path: .
sortable: shipment.order
sortable: shipment.order.number
options:
template: "@BitBagSyliusShippingExportPlugin/ShippingExport/Grid/Field/orderNumber.html.twig"
shipment:
Expand All @@ -38,7 +39,7 @@ sylius_grid:
type: twig
label: sylius.ui.shipping_method
path: .
sortable: shipment.method
sortable: shipment.method.code
options:
template: "@BitBagSyliusShippingExportPlugin/ShippingExport/Grid/Field/shippingMethod.html.twig"
labelPath:
Expand Down

0 comments on commit 74e8fa7

Please sign in to comment.