card save fix
This commit is contained in:
parent
10ebd49859
commit
97ec261e8e
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user