// Stock : fixed bugs on cover/instant state/warehouse/management

This commit is contained in:
bMancone
2011-11-15 18:19:27 +00:00
parent 7adc1a1a9c
commit 72b9974662
11 changed files with 167 additions and 160 deletions
+8 -4
View File
@@ -141,11 +141,15 @@ class StockCore extends ObjectModel
$this->upc = $row['upc'];
}
}
else {
else
{
$product = new Product((int)$this->id_product);
$this->reference = $product->reference;
$this->ean13 = $product->ean13;
$this->upc = $product->upc;
if (Validate::isLoadedObject($product))
{
$this->reference = $product->reference;
$this->ean13 = $product->ean13;
$this->upc = $product->upc;
}
}
}
}