Sfoglia il codice sorgente

Merge branch 'dev'

master
Guillaume 4 anni fa
parent
commit
607a6df442
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      common/models/Product.php

+ 3
- 1
common/models/Product.php Vedi File

@@ -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);
}


Loading…
Annulla
Salva