user card search fix 4

This commit is contained in:
Kavalar 2023-05-04 18:11:28 +03:00
parent c5850bda46
commit 14e2025e73

View File

@ -53,6 +53,7 @@ class UserCardSearch extends UserCard
$manager = Manager::findOne(Yii::$app->user->id);
if (!$manager){
$query = UserCard::find()->where(['id' => 0]);
return new ActiveDataProvider(['query' => $query]);
}
else {
$employeeIdList = ManagerEmployee::find()