remove attempt to adjust accompanyingperiod work for display of user job and service at specific date

This commit is contained in:
Julie Lenaerts 2024-01-17 17:27:54 +01:00
parent ad6154a1e4
commit 853014d8d2
2 changed files with 4 additions and 5 deletions

View File

@ -403,9 +403,8 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
{
$users = $this->referrersHistory
->filter(fn (AccompanyingPeriodWorkReferrerHistory $h) => null === $h->getEndDate())
->map(fn (AccompanyingPeriodWorkReferrerHistory $h) => ['user' => $h->getUser(), 'startDate' => $h->getStartDate()])
->getValues()
;
->map(fn (AccompanyingPeriodWorkReferrerHistory $h) => $h->getUser())
->getValues();
return new ArrayCollection(array_values($users));
}

View File

@ -83,9 +83,9 @@
</div>
<div class="wl-col list">
{%- if w.referrers|length > 0 -%}
{% for rh in w.referrers %}
{% for r in w.referrers %}
<span class="wl-item">
<span class="badge-user">{{ rh.user|chill_entity_render_box({'at_date': rh.startDate}) }}</span>
<span class="badge-user">{{ r|chill_entity_render_box }}</span>
{% if not loop.last %}, {% endif %}
</span>
{% endfor %}