Sfoglia il codice sorgente

Intégration du produit "Don" dans le formulaire de commande 'backend'

dev
parent
commit
11e64b431b
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +2
    -3
      backend/controllers/DistributionController.php

+ 2
- 3
backend/controllers/DistributionController.php Vedi File

@@ -114,9 +114,8 @@ class DistributionController extends BackendController
// products
$productsArray = Product::find()
->where([
'id_producer' => Producer::getId(),
])
->orWhere(['id_producer' => Producer::getId(),])
->orWhere(['id_producer' => 0,]) // produit "Don"
->joinWith(['productDistribution' => function($query) use($distribution) {
$query->andOnCondition('product_distribution.id_distribution = '.$distribution->id) ;
}])

Loading…
Annulla
Salva