[-] BO : FIx bug #PSCFV-10736, could not load a product given from getBoughtProducts

This commit is contained in:
gRoussac
2013-10-23 18:16:45 +02:00
parent 03ad842697
commit 8e506ddff2
@@ -630,6 +630,8 @@ class AdminCustomersControllerCore extends AdminController
for ($i = 0; $i < $total_interested; $i++)
{
$product = new Product($interested[$i]['id_product'], false, $this->default_form_language, $interested[$i]['id_shop']);
if (!Validate::isLoadedObject($product))
continue;
$interested[$i]['url'] = $this->context->link->getProductLink(
$product->id,
$product->link_rewrite,