Kaynağa Gözat

erreur sur map / join des genres dans le modal

garthh 1 ay önce
ebeveyn
işleme
cfe9cc3038
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  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>