Commit 54a26acc22bf28ad44dbffdd338e84324284f4cf
1 parent
5f2d1ae9
Поменял везде AliasableTrait на свой. Исправил баг, что нельзя было в врачах выбрать картингку
Showing
9 changed files
with
13 additions
and
11 deletions
 
Show diff stats
backend/controllers/DoctorController.php
| ... | ... | @@ -150,10 +150,12 @@ | 
| 150 | 150 | |
| 151 | 151 | protected static function fieldsConfig() | 
| 152 | 152 | { | 
| 153 | - return [ | |
| 153 | + | |
| 154 | + return [ | |
| 154 | 155 | 'model' => Doctor::className(), | 
| 155 | 156 | 'hasAlias' => true, | 
| 156 | - 'languageFields' => [ | |
| 157 | + | |
| 158 | + 'languageFields' => [ | |
| 157 | 159 | [ | 
| 158 | 160 | 'name' => 'name', | 
| 159 | 161 | 'type' => Form::STRING, | ... | ... | 
common/models/Doctor.php
| ... | ... | @@ -68,7 +68,7 @@ class Doctor extends \yii\db\ActiveRecord | 
| 68 | 68 | { | 
| 69 | 69 | return [ | 
| 70 | 70 | [['service_id', 'sort'], 'default', 'value' => null], | 
| 71 | - [['service_id', 'sort'], 'integer'], | |
| 71 | + [['service_id', 'sort', 'image_id'], 'integer'], | |
| 72 | 72 | [['status'], 'boolean'], | 
| 73 | 73 | [['service_id'], 'exist', 'skipOnError' => true, 'targetClass' => Service::className(), 'targetAttribute' => ['service_id' => 'id']], | 
| 74 | 74 | ]; | ... | ... | 
common/models/Package.php
common/models/Service.php
| ... | ... | @@ -2,9 +2,9 @@ | 
| 2 | 2 | |
| 3 | 3 | namespace common\models; | 
| 4 | 4 | |
| 5 | -use artbox\core\models\Alias; | |
| 5 | + | |
| 6 | 6 | use artbox\core\models\Image; | 
| 7 | -use artbox\core\models\traits\AliasableTrait; | |
| 7 | +use backend\traits\AliasableTrait; | |
| 8 | 8 | use backend\behaviors\LevelBehavior; | 
| 9 | 9 | use Yii; | 
| 10 | 10 | use artbox\core\models\Language; | ... | ... | 
common/models/blog/Article.php
common/models/blog/Category.php
common/models/blog/Tag.php
common/models/page/Page.php
| ... | ... | @@ -5,7 +5,7 @@ | 
| 5 | 5 | use artbox\core\behaviors\GalleryBehavior; | 
| 6 | 6 | use artbox\core\models\Image; | 
| 7 | 7 | use artbox\core\models\Language; | 
| 8 | - use artbox\core\models\traits\AliasableTrait; | |
| 8 | + use backend\traits\AliasableTrait; | |
| 9 | 9 | use yii\behaviors\TimestampBehavior; | 
| 10 | 10 | use yii\db\ActiveQuery; | 
| 11 | 11 | use yii\db\ActiveRecord; | ... | ... | 
