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 653ac1d62b
commit 8ed5a023e8
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -83,9 +83,9 @@
</div> </div>
<div class="wl-col list"> <div class="wl-col list">
{%- if w.referrers|length > 0 -%} {%- if w.referrers|length > 0 -%}
{% for rh in w.referrers %} {% for r in w.referrers %}
<span class="wl-item"> <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 %} {% if not loop.last %}, {% endif %}
</span> </span>
{% endfor %} {% endfor %}