Explorar el Código

[common] Correctif modèle Product

refactoring
Guillaume hace 4 años
padre
commit
2da1652542
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      common/models/Product.php

+ 3
- 1
common/models/Product.php Ver fichero

@@ -176,7 +176,9 @@ class Product extends ActiveRecordCommon
public function afterFind() {
if ($this->taxRate == null) {
$producer = Producer::searchOne(['id' => GlobalParam::getCurrentProducerId()]) ;
$this->populateRelation('taxRate', $producer->taxRate);
if($producer) {
$this->populateRelation('taxRate', $producer->taxRate);
}
//$this->populateRelation('taxRate', GlobalParam::getCurrentProducer()->taxRate);
}


Cargando…
Cancelar
Guardar