Sfoglia il codice sorgente

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

refactoring
parent
commit
b374b557fa
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      producer/controllers/OrderController.php

+ 2
- 2
producer/controllers/OrderController.php Vedi File

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

Loading…
Annulla
Salva