From e61c45791e8732a9dd60f69072589a4e064192b3 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 7 Jul 2021 16:39:51 +0300 Subject: [PATCH] user card level required --- common/models/UserCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/models/UserCard.php b/common/models/UserCard.php index 6f9af81..9cd83fb 100755 --- a/common/models/UserCard.php +++ b/common/models/UserCard.php @@ -94,7 +94,7 @@ class UserCard extends \yii\db\ActiveRecord public function rules() { return [ - [['fio', 'status', 'gender', 'email'], 'required'], + [['fio', 'status', 'gender', 'email', 'level'], 'required'], [['gender', 'status', 'position_id', 'id_user', 'level'], 'integer'], [['dob', 'created_at', 'updated_at', 'deleted_at', 'vc_text'], 'safe'], [['fio', 'passport', 'photo', 'email', 'resume', 'city', 'link_vk', 'link_telegram'], 'string', 'max' => 255],