Browse Source

[producer] Correction bug product.productDistribution non défini

dev
Guillaume Bourgeois 5 years ago
parent
commit
4a842d790b
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      producer/controllers/OrderController.php

+ 4
- 0
producer/controllers/OrderController.php View File

$indexProduct = 0 ; $indexProduct = 0 ;
foreach($productsArray as &$product) { foreach($productsArray as &$product) {
if(!isset($theProduct['productDistribution'][0])) {
$theProduct['productDistribution'][0] = $distribution->linkProduct($product) ;
}
$coefficient_unit = Product::$unitsArray[$product['unit']]['coefficient'] ; $coefficient_unit = Product::$unitsArray[$product['unit']]['coefficient'] ;
if(is_null($product['photo'])) { if(is_null($product['photo'])) {

Loading…
Cancel
Save