Commit 57e21fcbc2f1923ba4ec06a2c2db5e5cfd444ac8
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,7 +380,6 @@ | ||
| 380 | public function getFullName():string | 380 | public function getFullName():string |
| 381 | { | 381 | { |
| 382 | $name = ''; | 382 | $name = ''; |
| 383 | - | ||
| 384 | $groupName = (new Query())->select(['tax_option.*','tax_option_lang.*']) | 383 | $groupName = (new Query())->select(['tax_option.*','tax_option_lang.*']) |
| 385 | ->from([ 'tax_option' ]) | 384 | ->from([ 'tax_option' ]) |
| 386 | ->innerJoin('tax_group', 'tax_group.id = tax_option.tax_group_id') | 385 | ->innerJoin('tax_group', 'tax_group.id = tax_option.tax_group_id') |
| @@ -595,7 +594,7 @@ | @@ -595,7 +594,7 @@ | ||
| 595 | { | 594 | { |
| 596 | parent::afterSave($insert, $changedAttributes); | 595 | parent::afterSave($insert, $changedAttributes); |
| 597 | 596 | ||
| 598 | - Catalog::addRecord($this); | 597 | + |
| 599 | 598 | ||
| 600 | if (!empty( $this->categories )) { | 599 | if (!empty( $this->categories )) { |
| 601 | $categories = Category::findAll($this->categories); | 600 | $categories = Category::findAll($this->categories); |
| @@ -612,6 +611,7 @@ | @@ -612,6 +611,7 @@ | ||
| 612 | $this->link('options', $option); | 611 | $this->link('options', $option); |
| 613 | } | 612 | } |
| 614 | } | 613 | } |
| 614 | + Catalog::addRecord($this); | ||
| 615 | } | 615 | } |
| 616 | 616 | ||
| 617 | /** | 617 | /** |