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

[Product] fix ProductController::searchAction #4967

Merged
merged 1 commit into from
May 9, 2016

Conversation

lighta971
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related tickets --
License MIT

Exception when product has no image

Exception when product has no image
@@ -275,7 +275,7 @@ public function searchAction(Request $request)
$results[] = [
'id' => $product->getMasterVariant()->getId(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not $product->getId() instead ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure to be honest, I believe there was some reason, but can't remember now.

@pjedrzejewski pjedrzejewski merged commit 0e9fec4 into Sylius:master May 9, 2016
@pjedrzejewski
Copy link
Member

Thanks Aurel! 👍

@lighta971 lighta971 deleted the patch-4 branch May 9, 2016 10:12
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