Commit 0cc4470923e3c002c9f31041132b568303de1208

Authored by Alexey Boroda
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 10 use artweb\artbox\behaviors\SaveMultipleFileBehavior;
11 11 use artweb\artbox\event\models\Event;
12 12 use artweb\artbox\language\behaviors\LanguageBehavior;
  13 + use artweb\artbox\language\models\Language;
13 14 use frontend\models\Catalog;
14 15 use Yii;
15 16 use yii\base\InvalidParamException;
... ... @@ -410,10 +411,10 @@
410 411 $this->options,
411 412 'id'
412 413 ),
  414 + 'tax_option_lang.language_id' => Language::$current->id,
413 415 ]
414 416 )
415 417 ->one();
416   -
417 418 if ($groupName != NULL) {
418 419 $groupName = $groupName[ 'value' ];
419 420 } else {
... ...