Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix Grids archive ability to work on multi-param urls#9662

Merged
pamil merged 1 commit into
Sylius:1.1from
diimpp:patch-16
Aug 23, 2018
Merged

Fix Grids archive ability to work on multi-param urls#9662
pamil merged 1 commit into
Sylius:1.1from
diimpp:patch-16

Conversation

@diimpp
Copy link
Copy Markdown
Member

@diimpp diimpp commented Aug 21, 2018

Q A
Branch? 1.0, 1.1, 1.2, master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets no
License MIT

Hi,

I was adding ArchivableInterface to my ProductVariant, when I've noticed, that archive.html.twig can't work on urls with multiple parameters, like productId, id, e.g. /admin/products/206/variants/195

Solution is copy-pasted from delete.html.twig, which doesn't have such problem. https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/UiBundle/Resources/views/Grid/Action/delete.html.twig

Works for me on shipping-methods and custom product/product-variants views.

Let me know, if something is unclear.

Cheers.

@pamil pamil merged commit 65691c2 into Sylius:1.1 Aug 23, 2018
@pamil pamil added the Potential Bug Potential bugs or bugfixes, that needs to be reproduced. label Aug 23, 2018
@pamil
Copy link
Copy Markdown
Contributor

pamil commented Aug 23, 2018

Thank you, Dmitri! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Potential Bug Potential bugs or bugfixes, that needs to be reproduced.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants