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

Fixes sql exception when creating a product_option without values #12201

merged 2 commits into from Jan 29, 2019


None yet
5 participants
Copy link

mowcixo commented Jan 17, 2019

Questions Answers
Branch? develop
Description? When you create a product_option without values through prestashop, it is going to execute a delete in () without any value.
Type? bug fix
Category? WS
BC breaks? no
Deprecations? no
How to test? Just create a product_option through webservice, with no value associations as following:
    <language id="1">Temp</language>
    <language id="1">Temp</language>
    <product_option_values />

This change is Reviewable


This comment has been minimized.

Copy link

prestonBot commented Jan 17, 2019

Hello @mowcixo!

This is your first pull request on the PrestaShop project. Thank you, and welcome to this Open Source community!

@PierreRambaud PierreRambaud added this to the milestone Jan 24, 2019


This comment has been minimized.

Copy link

mbadrani commented Jan 24, 2019

Hello @mowcixo how can we reproduce the issue fixed b this PR? Can you provide me more details? thanks


This comment has been minimized.

Copy link
Contributor Author

mowcixo commented Jan 24, 2019

Yes @mbadrani, just posting the xml code I wrote in the PR description against the WS api/product_options endpoint is going to fail, because the $ids array is empty. Tested in PrestaShop develop branch, corresponding to

@mbadrani mbadrani self-assigned this Jan 29, 2019

@mbadrani mbadrani added QA ✔️ and removed waiting for QA labels Jan 29, 2019

@Quetzacoalt91 Quetzacoalt91 merged commit 6125516 into PrestaShop:develop Jan 29, 2019

1 of 2 checks passed

code-review/reviewable 1 file left (mbadrani)
continuous-integration/travis-ci/pr The Travis CI build passed

This comment has been minimized.

Copy link

Quetzacoalt91 commented Jan 29, 2019

Thank you @mowcixo

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