From 2214350ffeb8223580f025ddb77f5cda59975f44 Mon Sep 17 00:00:00 2001 From: Karnovsky A Date: Wed, 6 Apr 2016 14:08:54 +0300 Subject: [PATCH] Some fixes --- common/modules/product/models/Brand.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/modules/product/models/Brand.php b/common/modules/product/models/Brand.php index b11857b..7c6bf04 100644 --- a/common/modules/product/models/Brand.php +++ b/common/modules/product/models/Brand.php @@ -111,8 +111,6 @@ class Brand extends \yii\db\ActiveRecord } public function getName() { - return $this->brandName->value; - $value = $this->getBrandName()->one(); - return empty($value) ? $this->_getValue('name') : $value->value; + return empty($this->brandName) ? null : $this->brandName->value; } } -- libgit2 0.21.4