add filters, some improvements

This commit is contained in:
iIronside
2021-12-17 15:16:45 +03:00
parent 994353d557
commit ef0889aac6
13 changed files with 2990 additions and 33 deletions

View File

@ -109,8 +109,12 @@ class ProjectUserController extends Controller
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
if ($model->load(Yii::$app->request->post()) ) {
$model->card_id = UserCard::getIdByUserId($model->user_id);
if ($model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
}
}
return $this->render('update', [