Skip to content

Commit

Permalink
OHRM5X-2560: fix available employee for workshift
Browse files Browse the repository at this point in the history
  • Loading branch information
devishke-orange committed May 22, 2024
1 parent aeb16be commit 855e80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/orangehrmPimPlugin/Dao/EmployeeDao.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public function getAvailableEmployeeListForWorkShift(EmployeeSearchFilterParams
$q = $this->getEmployeeListQueryBuilderWrapper($employeeSearchParamHolder)->getQueryBuilder();
$q->leftJoin('employee.employeeWorkShift', 'ew');
$q->andWhere($q->expr()->isNull('ew.employee'));
return $q->getQuery()->execute();
return array_column($q->getQuery()->execute(), 0);
}

/**
Expand Down

0 comments on commit 855e80a

Please sign in to comment.