소스 검색

erreur sur map / join des genres dans le modal

garthh 1 개월 전
부모
커밋
cfe9cc3038
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      templates/participation/_modal.add.html.twig

+ 3 - 1
templates/participation/_modal.add.html.twig

@@ -53,7 +53,9 @@
   			{% if party.gamemasterIsAuthor %}<p>Partie animée par son auteur(rice)</p>{% endif %}
   				<p><strong>Âge recommandé : </strong>{{ party.getGame.getAgeRecommendationLabel }}</p>
   				
-  				<p><strong>Genres : </strong>{{ party.getGame.getGenre| join(", ") }}
+  				<p><strong>Genres : </strong>{{ party.getGame.getGenre|map(g => g.name)|join(', ') }}
+  				
+
   			</div>
   		</div>