Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 23, 2018

Conversation

diimpp
Copy link
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
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.

None yet

2 participants