FIX [render] use isAbsent method to render user as absent or not + place homepage msg above searchbar

This commit is contained in:
2023-01-27 11:10:17 +01:00
parent f76c031ff3
commit bb7d072cc8
5 changed files with 8 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ class UserRender implements ChillEntityRenderInterface
$current_date = new DateTimeImmutable();
if (null !== $entity->getAbsenceStart() && $entity->getAbsenceStart() < $current_date && $opts['main_scope']) {
if ($entity->isAbsent() && $opts['main_scope']) {
$str .= ' (' . $this->translator->trans('absence.Absent') . ')';
}