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

[Shipment] Fix join on ShipmentRepository for Shipment Admin page #3779

Merged
merged 1 commit into from
Dec 27, 2015

Conversation

peteward
Copy link

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

It could be specific to our app that shipments are created before addresses sometimes, but there's no point in this query being a left-join anyway since the Backend/Shipment/macros.html.twig file requires an address (and an order) for displaying shipments:

https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/WebBundle/Resources/views/Backend/Shipment/macros.html.twig#L33

…s admin page won't blow up if order doesn't have a shippingAddress
@peteward peteward changed the title Change leftJoin to innerJoin on ShipmentRepository to ensure Shipment… [Shipment] Fix join on ShipmentRepository for Shipment Admin page Dec 27, 2015
pjedrzejewski pushed a commit that referenced this pull request Dec 27, 2015
[Shipment] Fix join on ShipmentRepository for Shipment Admin page
@pjedrzejewski pjedrzejewski merged commit 8868247 into Sylius:master Dec 27, 2015
@pjedrzejewski
Copy link
Member

Makes sense, thanks Peter!

@peteward peteward deleted the pw-shipments-inner-join branch December 27, 2015 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants