From 97ec261e8efd0a2db649360161af8c52986d9bc3 Mon Sep 17 00:00:00 2001 From: andrey Date: Thu, 12 Aug 2021 14:10:28 +0300 Subject: [PATCH] card save fix --- backend/modules/card/models/UserCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/modules/card/models/UserCard.php b/backend/modules/card/models/UserCard.php index 7fcc09f..fed5613 100755 --- a/backend/modules/card/models/UserCard.php +++ b/backend/modules/card/models/UserCard.php @@ -76,7 +76,7 @@ class UserCard extends \common\models\UserCard public function beforeSave($insert) { - if(is_array(\Yii::$app->request->post('UserCard'))) + if(isset(\Yii::$app->request->post('UserCard')['salary'])) { $this->salary = str_replace(' ', '', \Yii::$app->request->post('UserCard')['salary']); }