diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index c641b80..8561331 100644 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -161,9 +161,7 @@ class Category extends \yii\db\ActiveRecord return $this->hasOne(CategoryName::className(), ['category_name_id' => 'category_name_id']); } -// public function getName() { -//// return $this->getCategoryName(); -// $value = $this->getCategoryName()->one(); -// return empty($value) ? $this->_getValue('name') : $value->value; -// } + public function getName() { + return empty($this->categoryName) ? null : $this->categoryName->value; + } } diff --git a/common/modules/rubrication/views/tax-group/_form.php b/common/modules/rubrication/views/tax-group/_form.php index 263c2db..6efdff6 100644 --- a/common/modules/rubrication/views/tax-group/_form.php +++ b/common/modules/rubrication/views/tax-group/_form.php @@ -22,7 +22,7 @@ use common\components\artboxtree\ArtboxTreeHelper; field($model, 'description')->textarea(['rows' => 6]) ?> field($model, 'module')->dropDownList(RubricationHelper::OptionTypes(), [ - 'promtp' => Yii::t('rubrication', 'Select module'), + 'prompt' => Yii::t('rubrication', 'Select module'), ]) ?> field($model, 'group_to_category')->dropDownList( -- libgit2 0.21.4