Commit 2214350ffeb8223580f025ddb77f5cda59975f44
1 parent
6caa2581
Some fixes
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
common/modules/product/models/Brand.php
@@ -111,8 +111,6 @@ class Brand extends \yii\db\ActiveRecord | @@ -111,8 +111,6 @@ class Brand extends \yii\db\ActiveRecord | ||
111 | } | 111 | } |
112 | 112 | ||
113 | public function getName() { | 113 | public function getName() { |
114 | - return $this->brandName->value; | ||
115 | - $value = $this->getBrandName()->one(); | ||
116 | - return empty($value) ? $this->_getValue('name') : $value->value; | 114 | + return empty($this->brandName) ? null : $this->brandName->value; |
117 | } | 115 | } |
118 | } | 116 | } |