card save fix

This commit is contained in:
andrey 2021-08-12 14:10:28 +03:00
parent 10ebd49859
commit 97ec261e8e

View File

@ -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']);
}