manager employee fix

This commit is contained in:
2023-05-04 15:10:56 +03:00
parent b2f482e10b
commit f9c7328529
10 changed files with 44 additions and 56 deletions

View File

@ -38,7 +38,7 @@ YiiAsset::register($this);
'id',
[
'attribute' => 'user_id',
'value' => ArrayHelper::getValue($model,'userCard.fio'),
'value' => ArrayHelper::getValue($model,'user.email'),
],
],
]) ?>
@ -52,9 +52,8 @@ YiiAsset::register($this);
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'user_card_id',
'filter' => UserCard::find()->select(['fio', 'id'])->indexBy('id')->column(),
'value' => 'userCard.fio',
'attribute' => 'employee_id',
'value' => 'employee.email',
],
[
'class' => 'yii\grid\ActionColumn',