From cb4c3b46b9ff6212ba9ef6daaed55fecf10fc57f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 27 Feb 2022 03:03:29 +0100 Subject: [PATCH] fix creating two workflow on accompanying period work --- .../public/vuejs/AccompanyingCourseWorkEdit/App.vue | 1 + .../Resources/views/AccompanyingCourseWork/_item.html.twig | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue index 94c6c0b55..a0d88d1bf 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue @@ -251,6 +251,7 @@ relatedEntityClass="Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork" :relatedEntityId="this.work.id" :workflowsAvailables="this.work.workflows_availables" + :preventDefaultMoveToGenerate="true" @go-to-generate-workflow="goToGenerateWorkflow" > diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_item.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_item.html.twig index 0e73f138c..770966d8b 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_item.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/_item.html.twig @@ -114,6 +114,12 @@ {% set suppEvaluations = suppEvaluations|merge([ {'relatedEntityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluation', 'relatedEntityId': e.id } ]) %} + + {% for d in e.documents %} + {% set suppEvaluations = suppEvaluations|merge([ + {'relatedEntityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluationDocument', 'relatedEntityId': d.id } + ]) %} + {% endfor %} {% endfor %}
  • {{ chill_entity_workflow_list(