add filters, some improvements

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

No files matched your search

@@ -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', [