{"action":"reopened","number":11148,"pull_request":{"url":"https://api.github.com/repos/magento/magento2/pulls/11148","id":143954045,"html_url":"https://github.com/magento/magento2/pull/11148","diff_url":"https://github.com/magento/magento2/pull/11148.diff","patch_url":"https://github.com/magento/magento2/pull/11148.patch","issue_url":"https://api.github.com/repos/magento/magento2/issues/11148","number":11148,"state":"open","locked":false,"title":"Fix the remove of all images in the catalog","user":{"login":"raumatbel","id":5289240,"avatar_url":"https://avatars0.githubusercontent.com/u/5289240?v=4","gravatar_id":"","url":"https://api.github.com/users/raumatbel","html_url":"https://github.com/raumatbel","followers_url":"https://api.github.com/users/raumatbel/followers","following_url":"https://api.github.com/users/raumatbel/following{/other_user}","gists_url":"https://api.github.com/users/raumatbel/gists{/gist_id}","starred_url":"https://api.github.com/users/raumatbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raumatbel/subscriptions","organizations_url":"https://api.github.com/users/raumatbel/orgs","repos_url":"https://api.github.com/users/raumatbel/repos","events_url":"https://api.github.com/users/raumatbel/events{/privacy}","received_events_url":"https://api.github.com/users/raumatbel/received_events","type":"User","site_admin":false},"body":"<!--- Provide a general summary of the Pull Request in the Title above -->\r\nRelated with the [PR#11147](https://github.com/magento/magento2/pull/11147)\r\nFix the removal of all images in the catalog\r\n\r\n### Description\r\n<!--- Provide a description of the changes proposed in the pull request -->\r\nIf the path of the image saved in the table catalog_product_entity_media_gallery is empty, this remove all the catalog.\r\n\r\n### Manual testing scenarios\r\n<!--- Provide a set of unambiguous steps to test the proposed code change -->\r\n1. Upload image from admin panel\r\n2. Save product\r\n3. Go to the DB to the **table catalog_product_entity_media_gallery** and remove the value of this image\r\n4. Remove this image from admin panel\r\n5. Save product\r\n\r\nAll the files are removed in pub/media/catalog/product/....\r\n\r\n### Contribution checklist\r\n - [ ] Pull request has a meaningful description of its purpose\r\n - [ ] All commits are accompanied by meaningful commit messages\r\n - [ ] All new or changed code is covered with unit/integration tests (if applicable)\r\n - [ ] All automated tests passed successfully (all builds on Travis CI are green)\r\n","created_at":"2017-09-29T18:44:12Z","updated_at":"2017-10-04T21:10:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc26ed2b01bb627225b4ed144b7a4fa5c5524c50","assignee":{"login":"vkublytskyi","id":1295148,"avatar_url":"https://avatars2.githubusercontent.com/u/1295148?v=4","gravatar_id":"","url":"https://api.github.com/users/vkublytskyi","html_url":"https://github.com/vkublytskyi","followers_url":"https://api.github.com/users/vkublytskyi/followers","following_url":"https://api.github.com/users/vkublytskyi/following{/other_user}","gists_url":"https://api.github.com/users/vkublytskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/vkublytskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkublytskyi/subscriptions","organizations_url":"https://api.github.com/users/vkublytskyi/orgs","repos_url":"https://api.github.com/users/vkublytskyi/repos","events_url":"https://api.github.com/users/vkublytskyi/events{/privacy}","received_events_url":"https://api.github.com/users/vkublytskyi/received_events","type":"User","site_admin":false},"assignees":[{"login":"vkublytskyi","id":1295148,"avatar_url":"https://avatars2.githubusercontent.com/u/1295148?v=4","gravatar_id":"","url":"https://api.github.com/users/vkublytskyi","html_url":"https://github.com/vkublytskyi","followers_url":"https://api.github.com/users/vkublytskyi/followers","following_url":"https://api.github.com/users/vkublytskyi/following{/other_user}","gists_url":"https://api.github.com/users/vkublytskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/vkublytskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkublytskyi/subscriptions","organizations_url":"https://api.github.com/users/vkublytskyi/orgs","repos_url":"https://api.github.com/users/vkublytskyi/repos","events_url":"https://api.github.com/users/vkublytskyi/events{/privacy}","received_events_url":"https://api.github.com/users/vkublytskyi/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/magento/magento2/milestones/9","html_url":"https://github.com/magento/magento2/milestone/9","labels_url":"https://api.github.com/repos/magento/magento2/milestones/9/labels","id":2804981,"number":9,"title":"October 2017","description":"Pull Requests processed in October 2017","creator":{"login":"okorshenko","id":7325075,"avatar_url":"https://avatars1.githubusercontent.com/u/7325075?v=4","gravatar_id":"","url":"https://api.github.com/users/okorshenko","html_url":"https://github.com/okorshenko","followers_url":"https://api.github.com/users/okorshenko/followers","following_url":"https://api.github.com/users/okorshenko/following{/other_user}","gists_url":"https://api.github.com/users/okorshenko/gists{/gist_id}","starred_url":"https://api.github.com/users/okorshenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okorshenko/subscriptions","organizations_url":"https://api.github.com/users/okorshenko/orgs","repos_url":"https://api.github.com/users/okorshenko/repos","events_url":"https://api.github.com/users/okorshenko/events{/privacy}","received_events_url":"https://api.github.com/users/okorshenko/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":3,"state":"open","created_at":"2017-10-01T09:07:08Z","updated_at":"2017-10-04T21:10:38Z","due_on":"2017-10-31T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/magento/magento2/pulls/11148/commits","review_comments_url":"https://api.github.com/repos/magento/magento2/pulls/11148/comments","review_comment_url":"https://api.github.com/repos/magento/magento2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magento/magento2/issues/11148/comments","statuses_url":"https://api.github.com/repos/magento/magento2/statuses/7602caa951a330cb815aec617387a0a3579fc88f","head":{"label":"raumatbel:2.1-develop","ref":"2.1-develop","sha":"7602caa951a330cb815aec617387a0a3579fc88f","user":{"login":"raumatbel","id":5289240,"avatar_url":"https://avatars0.githubusercontent.com/u/5289240?v=4","gravatar_id":"","url":"https://api.github.com/users/raumatbel","html_url":"https://github.com/raumatbel","followers_url":"https://api.github.com/users/raumatbel/followers","following_url":"https://api.github.com/users/raumatbel/following{/other_user}","gists_url":"https://api.github.com/users/raumatbel/gists{/gist_id}","starred_url":"https://api.github.com/users/raumatbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raumatbel/subscriptions","organizations_url":"https://api.github.com/users/raumatbel/orgs","repos_url":"https://api.github.com/users/raumatbel/repos","events_url":"https://api.github.com/users/raumatbel/events{/privacy}","received_events_url":"https://api.github.com/users/raumatbel/received_events","type":"User","site_admin":false},"repo":{"id":93942425,"name":"magento2","full_name":"raumatbel/magento2","owner":{"login":"raumatbel","id":5289240,"avatar_url":"https://avatars0.githubusercontent.com/u/5289240?v=4","gravatar_id":"","url":"https://api.github.com/users/raumatbel","html_url":"https://github.com/raumatbel","followers_url":"https://api.github.com/users/raumatbel/followers","following_url":"https://api.github.com/users/raumatbel/following{/other_user}","gists_url":"https://api.github.com/users/raumatbel/gists{/gist_id}","starred_url":"https://api.github.com/users/raumatbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raumatbel/subscriptions","organizations_url":"https://api.github.com/users/raumatbel/orgs","repos_url":"https://api.github.com/users/raumatbel/repos","events_url":"https://api.github.com/users/raumatbel/events{/privacy}","received_events_url":"https://api.github.com/users/raumatbel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raumatbel/magento2","description":"All Submissions you make to Magento Inc. (“Magento\") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission\") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here:  https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html","fork":true,"url":"https://api.github.com/repos/raumatbel/magento2","forks_url":"https://api.github.com/repos/raumatbel/magento2/forks","keys_url":"https://api.github.com/repos/raumatbel/magento2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raumatbel/magento2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raumatbel/magento2/teams","hooks_url":"https://api.github.com/repos/raumatbel/magento2/hooks","issue_events_url":"https://api.github.com/repos/raumatbel/magento2/issues/events{/number}","events_url":"https://api.github.com/repos/raumatbel/magento2/events","assignees_url":"https://api.github.com/repos/raumatbel/magento2/assignees{/user}","branches_url":"https://api.github.com/repos/raumatbel/magento2/branches{/branch}","tags_url":"https://api.github.com/repos/raumatbel/magento2/tags","blobs_url":"https://api.github.com/repos/raumatbel/magento2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raumatbel/magento2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raumatbel/magento2/git/refs{/sha}","trees_url":"https://api.github.com/repos/raumatbel/magento2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raumatbel/magento2/statuses/{sha}","languages_url":"https://api.github.com/repos/raumatbel/magento2/languages","stargazers_url":"https://api.github.com/repos/raumatbel/magento2/stargazers","contributors_url":"https://api.github.com/repos/raumatbel/magento2/contributors","subscribers_url":"https://api.github.com/repos/raumatbel/magento2/subscribers","subscription_url":"https://api.github.com/repos/raumatbel/magento2/subscription","commits_url":"https://api.github.com/repos/raumatbel/magento2/commits{/sha}","git_commits_url":"https://api.github.com/repos/raumatbel/magento2/git/commits{/sha}","comments_url":"https://api.github.com/repos/raumatbel/magento2/comments{/number}","issue_comment_url":"https://api.github.com/repos/raumatbel/magento2/issues/comments{/number}","contents_url":"https://api.github.com/repos/raumatbel/magento2/contents/{+path}","compare_url":"https://api.github.com/repos/raumatbel/magento2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raumatbel/magento2/merges","archive_url":"https://api.github.com/repos/raumatbel/magento2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raumatbel/magento2/downloads","issues_url":"https://api.github.com/repos/raumatbel/magento2/issues{/number}","pulls_url":"https://api.github.com/repos/raumatbel/magento2/pulls{/number}","milestones_url":"https://api.github.com/repos/raumatbel/magento2/milestones{/number}","notifications_url":"https://api.github.com/repos/raumatbel/magento2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raumatbel/magento2/labels{/name}","releases_url":"https://api.github.com/repos/raumatbel/magento2/releases{/id}","deployments_url":"https://api.github.com/repos/raumatbel/magento2/deployments","created_at":"2017-06-10T13:57:35Z","updated_at":"2017-06-10T13:58:32Z","pushed_at":"2017-10-04T13:17:27Z","git_url":"git://github.com/raumatbel/magento2.git","ssh_url":"git@github.com:raumatbel/magento2.git","clone_url":"https://github.com/raumatbel/magento2.git","svn_url":"https://github.com/raumatbel/magento2","homepage":"http://www.magento.com","size":393138,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"magento:2.1-develop","ref":"2.1-develop","sha":"78e72eb8c7f3d5e77b1f8cfd2a7263813ad65019","user":{"login":"magento","id":168457,"avatar_url":"https://avatars2.githubusercontent.com/u/168457?v=4","gravatar_id":"","url":"https://api.github.com/users/magento","html_url":"https://github.com/magento","followers_url":"https://api.github.com/users/magento/followers","following_url":"https://api.github.com/users/magento/following{/other_user}","gists_url":"https://api.github.com/users/magento/gists{/gist_id}","starred_url":"https://api.github.com/users/magento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magento/subscriptions","organizations_url":"https://api.github.com/users/magento/orgs","repos_url":"https://api.github.com/users/magento/repos","events_url":"https://api.github.com/users/magento/events{/privacy}","received_events_url":"https://api.github.com/users/magento/received_events","type":"Organization","site_admin":false},"repo":{"id":2884111,"name":"magento2","full_name":"magento/magento2","owner":{"login":"magento","id":168457,"avatar_url":"https://avatars2.githubusercontent.com/u/168457?v=4","gravatar_id":"","url":"https://api.github.com/users/magento","html_url":"https://github.com/magento","followers_url":"https://api.github.com/users/magento/followers","following_url":"https://api.github.com/users/magento/following{/other_user}","gists_url":"https://api.github.com/users/magento/gists{/gist_id}","starred_url":"https://api.github.com/users/magento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magento/subscriptions","organizations_url":"https://api.github.com/users/magento/orgs","repos_url":"https://api.github.com/users/magento/repos","events_url":"https://api.github.com/users/magento/events{/privacy}","received_events_url":"https://api.github.com/users/magento/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/magento/magento2","description":"All Submissions you make to Magento Inc. (“Magento\") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission\") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here:  https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html","fork":false,"url":"https://api.github.com/repos/magento/magento2","forks_url":"https://api.github.com/repos/magento/magento2/forks","keys_url":"https://api.github.com/repos/magento/magento2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magento/magento2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magento/magento2/teams","hooks_url":"https://api.github.com/repos/magento/magento2/hooks","issue_events_url":"https://api.github.com/repos/magento/magento2/issues/events{/number}","events_url":"https://api.github.com/repos/magento/magento2/events","assignees_url":"https://api.github.com/repos/magento/magento2/assignees{/user}","branches_url":"https://api.github.com/repos/magento/magento2/branches{/branch}","tags_url":"https://api.github.com/repos/magento/magento2/tags","blobs_url":"https://api.github.com/repos/magento/magento2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magento/magento2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magento/magento2/git/refs{/sha}","trees_url":"https://api.github.com/repos/magento/magento2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magento/magento2/statuses/{sha}","languages_url":"https://api.github.com/repos/magento/magento2/languages","stargazers_url":"https://api.github.com/repos/magento/magento2/stargazers","contributors_url":"https://api.github.com/repos/magento/magento2/contributors","subscribers_url":"https://api.github.com/repos/magento/magento2/subscribers","subscription_url":"https://api.github.com/repos/magento/magento2/subscription","commits_url":"https://api.github.com/repos/magento/magento2/commits{/sha}","git_commits_url":"https://api.github.com/repos/magento/magento2/git/commits{/sha}","comments_url":"https://api.github.com/repos/magento/magento2/comments{/number}","issue_comment_url":"https://api.github.com/repos/magento/magento2/issues/comments{/number}","contents_url":"https://api.github.com/repos/magento/magento2/contents/{+path}","compare_url":"https://api.github.com/repos/magento/magento2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magento/magento2/merges","archive_url":"https://api.github.com/repos/magento/magento2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magento/magento2/downloads","issues_url":"https://api.github.com/repos/magento/magento2/issues{/number}","pulls_url":"https://api.github.com/repos/magento/magento2/pulls{/number}","milestones_url":"https://api.github.com/repos/magento/magento2/milestones{/number}","notifications_url":"https://api.github.com/repos/magento/magento2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magento/magento2/labels{/name}","releases_url":"https://api.github.com/repos/magento/magento2/releases{/id}","deployments_url":"https://api.github.com/repos/magento/magento2/deployments","created_at":"2011-11-30T15:30:13Z","updated_at":"2017-10-04T14:52:13Z","pushed_at":"2017-10-04T21:05:54Z","git_url":"git://github.com/magento/magento2.git","ssh_url":"git@github.com:magento/magento2.git","clone_url":"https://github.com/magento/magento2.git","svn_url":"https://github.com/magento/magento2","homepage":"http://www.magento.com","size":393507,"stargazers_count":4790,"watchers_count":4790,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3721,"mirror_url":null,"open_issues_count":1723,"forks":3721,"open_issues":1723,"watchers":4790,"default_branch":"2.2-develop"}},"_links":{"self":{"href":"https://api.github.com/repos/magento/magento2/pulls/11148"},"html":{"href":"https://github.com/magento/magento2/pull/11148"},"issue":{"href":"https://api.github.com/repos/magento/magento2/issues/11148"},"comments":{"href":"https://api.github.com/repos/magento/magento2/issues/11148/comments"},"review_comments":{"href":"https://api.github.com/repos/magento/magento2/pulls/11148/comments"},"review_comment":{"href":"https://api.github.com/repos/magento/magento2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magento/magento2/pulls/11148/commits"},"statuses":{"href":"https://api.github.com/repos/magento/magento2/statuses/7602caa951a330cb815aec617387a0a3579fc88f"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":4,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"okorshenko"}}