Commit ccd591b1499d8c8847b06bcf404284f0959743a2

Authored by Administrator
1 parent aefe93aa

big commti

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
common/modules/rubrication/models/TaxOption.php
... ... @@ -74,7 +74,7 @@ class TaxOption extends \yii\db\ActiveRecord
74 74 return [
75 75 [['tax_group_id','name'], 'required'],
76 76 [['tax_group_id', 'parent_id', 'sort', 'default_value'], 'integer'],
77   - [['alias'], 'string', 'max' => 50],
  77 + [['alias', 'value'], 'string', 'max' => 50],
78 78 [['tax_group_id'], 'exist', 'skipOnError' => true, 'targetClass' => TaxGroup::className(), 'targetAttribute' => ['tax_group_id' => 'tax_group_id']],
79 79 // [['parent_id'], 'exist', 'skipOnError' => true, 'targetClass' => TaxOption::className(), 'targetAttribute' => ['parent_id' => 'tax_option_id']],
80 80 ];
... ... @@ -168,7 +168,9 @@ class TaxOption extends \yii\db\ActiveRecord
168 168 {
169 169 return $this->name;
170 170 }
171   -
  171 + public function setValue($value){
  172 + return $this->name = $value;
  173 + }
172 174 /**
173 175 */
174 176 public function getValueRenderFlash()
... ... @@ -183,6 +185,8 @@ class TaxOption extends \yii\db\ActiveRecord
183 185 return $this->name;
184 186 }
185 187  
  188 +
  189 +
186 190 /**
187 191 * @return \yii\db\ActiveQuery
188 192 */
... ...