Bläddra i källkod

Désactivation des dons possibles à la plateforme

refactoring
Guillaume Bourgeois 4 år sedan
förälder
incheckning
4222a9eb62
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      producer/controllers/OrderController.php

+ 2
- 1
producer/controllers/OrderController.php Visa fil

@@ -606,7 +606,8 @@ class OrderController extends ProducerBaseController
if (Producer::getConfig('option_allow_user_gift')) {
$productsArray = Product::find()
->orWhere(['id_producer' => $this->getProducer()->id,])
->orWhere(['id_producer' => 0,]); // produit "Don";
//->orWhere(['id_producer' => 0,]) // produit "Don";
;
} else {
$productsArray = Product::find()
->where(['id_producer' => $this->getProducer()->id,]);

Laddar…
Avbryt
Spara