Fixes for features "allow to set user absences"

This commit is contained in:
2023-03-01 16:08:49 +01:00
parent f1ebc089c3
commit 6749758b46
8 changed files with 18 additions and 15 deletions

View File

@@ -69,7 +69,9 @@ class UserRender implements ChillEntityRenderInterface
->localize($entity->getMainScope()->getName()) . ')';
}
$current_date = new DateTimeImmutable();
if ($entity->isAbsent() && $opts['absence']) {
$str .= ' (' . $this->translator->trans('absence.Absent') . ')';
}
return $str;
}