// Fix not found products

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12446 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-16 16:05:44 +00:00
parent 5921891a22
commit aa65a967ad
+5 -5
View File
@@ -70,15 +70,15 @@ class ProductControllerCore extends FrontController
else
$this->canonicalRedirection();
if (Pack::isPack((int)$this->product->id) && !Pack::isInStock((int)$this->product->id))
$this->product->quantity = 0;
$this->product->description = $this->transformDescriptionWithImg($this->product->description);
if (!Validate::isLoadedObject($this->product))
$this->errors[] = Tools::displayError('Product not found');
else
{
if (Pack::isPack((int)$this->product->id) && !Pack::isInStock((int)$this->product->id))
$this->product->quantity = 0;
$this->product->description = $this->transformDescriptionWithImg($this->product->description);
/*
* If the product is associated to the shop
* and is active or not active but preview mode (need token + file_exists)