{"action":"opened","issue":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/15451","repository_url":"https://api.github.com/repos/PrestaShop/PrestaShop","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/15451/labels{/name}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/15451/comments","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/15451/events","html_url":"https://github.com/PrestaShop/PrestaShop/issues/15451","id":490391527,"node_id":"MDU6SXNzdWU0OTAzOTE1Mjc=","number":15451,"title":"slow backoffice TypeaheadProductCollectionType.php","user":{"login":"Peter4661","id":11147327,"node_id":"MDQ6VXNlcjExMTQ3MzI3","avatar_url":"https://avatars2.githubusercontent.com/u/11147327?v=4","gravatar_id":"","url":"https://api.github.com/users/Peter4661","html_url":"https://github.com/Peter4661","followers_url":"https://api.github.com/users/Peter4661/followers","following_url":"https://api.github.com/users/Peter4661/following{/other_user}","gists_url":"https://api.github.com/users/Peter4661/gists{/gist_id}","starred_url":"https://api.github.com/users/Peter4661/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peter4661/subscriptions","organizations_url":"https://api.github.com/users/Peter4661/orgs","repos_url":"https://api.github.com/users/Peter4661/repos","events_url":"https://api.github.com/users/Peter4661/events{/privacy}","received_events_url":"https://api.github.com/users/Peter4661/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-06T15:33:14Z","updated_at":"2019-09-06T15:33:14Z","closed_at":null,"author_association":"NONE","body":"we experienced slow backoffice when editing product with options.\r\n\r\nIn debug mode:\r\n\r\nin src/PrestaShopBundle/Form/Admin/Type/TypeaheadProductCollectionType.php (line 96)\r\n\r\n                        default:\r\n                            $product = $this->productAdapter->getProduct($id);\r\n                            $collection[] = [\r\n                                'id' => $id,\r\n                                'name' => reset($product->name) . ' (ref:' . $product->reference . ')',\r\n                                'image' => $product->image,\r\n                            ];\r\n                            break;\r\n                    }\r\n\r\n\r\n\r\n\r\n\r\n\r\nCRITICAL 16:58:45 \tphp \tUncaught Warning: reset() expects parameter 1 to be array, null given\r\nCRITICAL 16:58:45 \trequest \tUncaught PHP Exception Symfony\\Component\\Debug\\Exception\\ContextErrorException: \"Warning: reset() expects parameter 1 to be array, null given\" at /home/debxxx/domains/xxxx.nl/public_html/src/PrestaShopBundle/Form/Admin/Type/TypeaheadProductCollectionType.php line 96"}}
{"actor":{"display_login":"Peter4661"}}