{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/4779","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/4779/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/4779/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/4779/events","html_url":"https://github.com/magento/magento2/issues/4779","id":157522499,"number":4779,"title":"Simple products not working properly for reasons unknown","user":{"login":"kanduvisla","id":346681,"avatar_url":"https://avatars.githubusercontent.com/u/346681?v=3","gravatar_id":"","url":"https://api.github.com/users/kanduvisla","html_url":"https://github.com/kanduvisla","followers_url":"https://api.github.com/users/kanduvisla/followers","following_url":"https://api.github.com/users/kanduvisla/following{/other_user}","gists_url":"https://api.github.com/users/kanduvisla/gists{/gist_id}","starred_url":"https://api.github.com/users/kanduvisla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanduvisla/subscriptions","organizations_url":"https://api.github.com/users/kanduvisla/orgs","repos_url":"https://api.github.com/users/kanduvisla/repos","events_url":"https://api.github.com/users/kanduvisla/events{/privacy}","received_events_url":"https://api.github.com/users/kanduvisla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-30T15:25:00Z","updated_at":"2016-05-30T15:25:00Z","closed_at":null,"body":"I have this strange situation in a clients' installation: I have a configurable product (ID=111) and it has 2 simples attached (ID 112 & 113). Now when I save it in the backend, the following happens:\r\n\r\n- In my 'configurations' section there is only one product. This is wrong.\r\n- In my databases' `catalog_product_super_link` there are 2 relations (as expected).\r\n- In my databases' `catalog_product_relation` there are also 2 relations (as expected).\r\n- On the frontend, I can only choose 1 option from the dropdown.\r\n\r\nWhen I try to re-save the relation in the backend (because it only shows one, my client tries to manually add a product and re-selects the product), I get the following error:\r\n\r\n    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '112-111' for key 'CATALOG_PRODUCT_SUPER_LINK_PRODUCT_ID_PARENT_ID', query was: INSERT INTO `catalog_product_super_link` (`product_id`,`parent_id`) VALUES (?, ?)\r\n\r\nThis of course makes sense, because the relation already exists in the database. But for some reason it's not working in the backend or the frontend.\r\n\r\nAnyone got a clue where it might be going wrong?"}}
{"actor":{"display_login":"kanduvisla"}}