Ver código fonte

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

dev
Guillaume Bourgeois 5 anos atrás
pai
commit
4a842d790b
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      producer/controllers/OrderController.php

+ 4
- 0
producer/controllers/OrderController.php Ver arquivo

@@ -596,6 +596,10 @@ class OrderController extends ProducerBaseController
$indexProduct = 0 ;
foreach($productsArray as &$product) {
if(!isset($theProduct['productDistribution'][0])) {
$theProduct['productDistribution'][0] = $distribution->linkProduct($product) ;
}
$coefficient_unit = Product::$unitsArray[$product['unit']]['coefficient'] ;
if(is_null($product['photo'])) {

Carregando…
Cancelar
Salvar