{"action":"created","issue":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9922","repository_url":"https://api.github.com/repos/PrestaShop/PrestaShop","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9922/labels{/name}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9922/comments","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9922/events","html_url":"https://github.com/PrestaShop/PrestaShop/issues/9922","id":353139757,"node_id":"MDU6SXNzdWUzNTMxMzk3NTc=","number":9922,"title":"[BOOM-3639] unit_price_ratio is not saved to database when creating products via the webservice","user":{"login":"prestonBot","id":20399011,"node_id":"MDQ6VXNlcjIwMzk5MDEx","avatar_url":"https://avatars1.githubusercontent.com/u/20399011?v=4","gravatar_id":"","url":"https://api.github.com/users/prestonBot","html_url":"https://github.com/prestonBot","followers_url":"https://api.github.com/users/prestonBot/followers","following_url":"https://api.github.com/users/prestonBot/following{/other_user}","gists_url":"https://api.github.com/users/prestonBot/gists{/gist_id}","starred_url":"https://api.github.com/users/prestonBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prestonBot/subscriptions","organizations_url":"https://api.github.com/users/prestonBot/orgs","repos_url":"https://api.github.com/users/prestonBot/repos","events_url":"https://api.github.com/users/prestonBot/events{/privacy}","received_events_url":"https://api.github.com/users/prestonBot/received_events","type":"User","site_admin":false},"labels":[{"id":985941496,"node_id":"MDU6TGFiZWw5ODU5NDE0OTY=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/1.7.2.0","name":"1.7.2.0","color":"8cffda","default":false},{"id":985945818,"node_id":"MDU6TGFiZWw5ODU5NDU4MTg=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/1.7.4.0","name":"1.7.4.0","color":"8cffda","default":false},{"id":1031971482,"node_id":"MDU6TGFiZWwxMDMxOTcxNDgy","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/1.7.4.1","name":"1.7.4.1","color":"8cffda","default":false},{"id":19737369,"node_id":"MDU6TGFiZWwxOTczNzM2OQ==","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Bug","name":"Bug","color":"d4c5f9","default":false},{"id":984870401,"node_id":"MDU6TGFiZWw5ODQ4NzA0MDE=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Minor","name":"Minor","color":"e11d21","default":false},{"id":1018122437,"node_id":"MDU6TGFiZWwxMDE4MTIyNDM3","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Taxes%20and%20Prices","name":"Taxes and Prices","color":"4f9abc","default":false},{"id":1024035919,"node_id":"MDU6TGFiZWwxMDI0MDM1OTE5","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/To%20Do","name":"To Do","color":"ff8800","default":false},{"id":1018097426,"node_id":"MDU6TGFiZWwxMDE4MDk3NDI2","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Webservice","name":"Webservice","color":"ce4a50","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T21:52:50Z","updated_at":"2018-08-22T21:53:11Z","closed_at":null,"author_association":"COLLABORATOR","body":"\n> This issue has been migrated from the Forge. Read the [original ticket here](http://forge.prestashop.com/browse/BOOM-3639).\n\n- _**Reporter:**_ CharlTruter\n- _**Created at:**_ Fri, 11 Aug 2017 11:45:26 +0200\n\n\n<p>Good day,</p>\n\n<p>We've encountered a bug with the new 1.7.2 prestashop version.<br/>\nBefore 1.7.2, we were completely unable to set the unit_price_ratio field on a product via the webservice (it would not be saved to the database) - fortunately, I found that you guys added a fix to 1.7.2 that would resolve this issue.</p>\n\n<p>The issue is resolved, but only halfway.</p>\n\n<p>Creating a new product via the webservice and specifying the unit_price_ratio does not save the field to the database, even though it returns it in the POST response.</p>\n\n<p>Updating a product via the webservice and specifying unit_price_ratio however works and saves it to the database, so the issue is specifically related to creating products via the webservice.</p>\n\n<p>Steps to reproduce:</p>\n\n<p>1. Create a product via the webservice and set the unit_price_ratio (for example to 45.454543) - (POST APIURL/api/products)<br/>\n2. Note that in the response from this POST, the unit_price_ratio will be set.<br/>\n3. Retrieve the product information via the webservice (GET APIURL/api/products/NEWPRODUCTID)<br/>\n4. Note that the unit_price_ratio is now 0, not the value specified in step 1.<br/>\n5. Update the product via the webservice and set the unit_price_ratio (for example to 45.454543) - (PUT APIURL/products/NEWPRODUCTID)<br/>\n6. Note that in the response from this PUT, the unit_price_ratio will be set.<br/>\n7. Retrieve the product information via the webservice (GET APIURL/api/products/NEWPRODUCTID)<br/>\n8. Note that the unit_price_ratio is now correct.</p>\n        \n* How to reproduce the issue ?\n\nN/A\n                    "},"comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments/415193567","html_url":"https://github.com/PrestaShop/PrestaShop/issues/9922#issuecomment-415193567","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9922","id":415193567,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTE5MzU2Nw==","user":{"login":"prestonBot","id":20399011,"node_id":"MDQ6VXNlcjIwMzk5MDEx","avatar_url":"https://avatars1.githubusercontent.com/u/20399011?v=4","gravatar_id":"","url":"https://api.github.com/users/prestonBot","html_url":"https://github.com/prestonBot","followers_url":"https://api.github.com/users/prestonBot/followers","following_url":"https://api.github.com/users/prestonBot/following{/other_user}","gists_url":"https://api.github.com/users/prestonBot/gists{/gist_id}","starred_url":"https://api.github.com/users/prestonBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prestonBot/subscriptions","organizations_url":"https://api.github.com/users/prestonBot/orgs","repos_url":"https://api.github.com/users/prestonBot/repos","events_url":"https://api.github.com/users/prestonBot/events{/privacy}","received_events_url":"https://api.github.com/users/prestonBot/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T21:53:11Z","updated_at":"2018-08-22T21:53:11Z","author_association":"COLLABORATOR","body":"\n> This comment has been migrated from the Forge. Read the [original comment here](http://forge.prestashop.com/browse/BOOM-3639#comment-151852).\n\n- _**Author:**_ prasanth\n- _**Created at:**_ Mon, 14 Aug 2017 11:55:56 +0200\n\n<p>Hi Charl Truter,</p>\n\n<p>Could you please tell us which PR which would normally have corrected this issue in 1.7.2.0?</p>\n\n<p>Thanks</p>\n        "}}
{"actor":{"display_login":"prestonBot"}}