Display too draft periods without creator in periods of a person

This commit is contained in:
Mathieu Jaumotte 2023-04-20 14:54:36 +02:00
parent bef1d6b4a3
commit a59e84b029
3 changed files with 4 additions and 1 deletions

View File

@ -174,7 +174,8 @@ final class AccompanyingPeriodACLAwareRepository implements AccompanyingPeriodAC
->andWhere(
$qb->expr()->orX(
$qb->expr()->neq('ap.step', ':draft'),
$qb->expr()->eq('ap.createdBy', ':creator')
$qb->expr()->orX($qb->expr()->eq('ap.createdBy', ':creator'),
$qb->expr()->isNull('ap.createdBy'))
)
)
->setParameter('draft', AccompanyingPeriod::STEP_DRAFT)

View File

@ -22,6 +22,7 @@
<div class="col-md-10">
<h1>{{ 'My accompanying periods in draft'|trans }}</h1>
<p class="help-text">{{ 'Display draft periods created by me'|trans }}</p>
<div class="flex-table accompanyingcourse-list">
{% for period in accompanyingPeriods %}

View File

@ -966,6 +966,7 @@ Linked evaluations: Évaluations associées
# Accompanying period per user
My accompanying periods: Mes parcours
My accompanying periods in draft: Mes parcours brouillons
Display draft periods created by me: Affiche les parcours brouillon que j'ai créé (pas ceux dont je suis référent)
Number of periods: Nombre de parcours
workflow: