Commit 57e21fcbc2f1923ba4ec06a2c2db5e5cfd444ac8

Authored by Administrator
1 parent 4775a528

site map

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
models/Product.php
... ... @@ -380,7 +380,6 @@
380 380 public function getFullName():string
381 381 {
382 382 $name = '';
383   -
384 383 $groupName = (new Query())->select(['tax_option.*','tax_option_lang.*'])
385 384 ->from([ 'tax_option' ])
386 385 ->innerJoin('tax_group', 'tax_group.id = tax_option.tax_group_id')
... ... @@ -595,7 +594,7 @@
595 594 {
596 595 parent::afterSave($insert, $changedAttributes);
597 596  
598   - Catalog::addRecord($this);
  597 +
599 598  
600 599 if (!empty( $this->categories )) {
601 600 $categories = Category::findAll($this->categories);
... ... @@ -612,6 +611,7 @@
612 611 $this->link('options', $option);
613 612 }
614 613 }
  614 + Catalog::addRecord($this);
615 615 }
616 616  
617 617 /**
... ...