Commit 0cc4470923e3c002c9f31041132b568303de1208
1 parent
ce03dacb
-Product's model 'getFullName' method update to return value for current language
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
models/Product.php
@@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
10 | use artweb\artbox\behaviors\SaveMultipleFileBehavior; | 10 | use artweb\artbox\behaviors\SaveMultipleFileBehavior; |
11 | use artweb\artbox\event\models\Event; | 11 | use artweb\artbox\event\models\Event; |
12 | use artweb\artbox\language\behaviors\LanguageBehavior; | 12 | use artweb\artbox\language\behaviors\LanguageBehavior; |
13 | + use artweb\artbox\language\models\Language; | ||
13 | use frontend\models\Catalog; | 14 | use frontend\models\Catalog; |
14 | use Yii; | 15 | use Yii; |
15 | use yii\base\InvalidParamException; | 16 | use yii\base\InvalidParamException; |
@@ -410,10 +411,10 @@ | @@ -410,10 +411,10 @@ | ||
410 | $this->options, | 411 | $this->options, |
411 | 'id' | 412 | 'id' |
412 | ), | 413 | ), |
414 | + 'tax_option_lang.language_id' => Language::$current->id, | ||
413 | ] | 415 | ] |
414 | ) | 416 | ) |
415 | ->one(); | 417 | ->one(); |
416 | - | ||
417 | if ($groupName != NULL) { | 418 | if ($groupName != NULL) { |
418 | $groupName = $groupName[ 'value' ]; | 419 | $groupName = $groupName[ 'value' ]; |
419 | } else { | 420 | } else { |