-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Admin][Order] Fix Show's Shipment List #15831
[Admin][Order] Fix Show's Shipment List #15831
Conversation
NoResponseMate
commented
Feb 9, 2024
•
edited by Wojdylak
Loading
edited by Wojdylak
Q | A |
---|---|
Branch? | bootstrap-admin-panel |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | - |
License | MIT |
Bunnyshell Preview Environment deletedAvailable commands:
|
src/Sylius/Bundle/AdminBundle/TwigComponent/Country/CountryType.php
Outdated
Show resolved
Hide resolved
...le/AdminBundle/Resources/views/Order/Show/Content/Sections/Shipments/Header/_title.html.twig
Outdated
Show resolved
Hide resolved
...us/Bundle/AdminBundle/Resources/views/Order/Show/Content/Sections/Shipments/_items.html.twig
Outdated
Show resolved
Hide resolved
|
||
{% form_theme form '@SyliusAdmin/Shared/form_theme.html.twig' %} | ||
|
||
{% if sm_can(shipment, 'ship', 'sylius_shipment') %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving a comment to not forget about it, we need our state machine abstraction twig function equivalent for this.
protected function getDataModelValue(): string | ||
{ | ||
return 'norender|*'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we remove this? I never had to add it, and I'm just curious why you needed that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default is on(change)|*
.
This form doesn't have constraints, so I think we don't need to send this form every time a user makes a change.
/bns:deploy |
Thank you, @NoResponseMate! |