]> git.agnieray.net Git - galette.git/commitdiff
Handle missing action title
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 4 Dec 2023 18:54:41 +0000 (19:54 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 4 Dec 2023 18:54:41 +0000 (19:54 +0100)
galette/templates/default/pages/member_show.html.twig

index b20eb34e76b455687d11a220cdb910d3a6a7ada4..20820951c757a425a9e57e6ce3869248875ba11f 100644 (file)
@@ -91,7 +91,7 @@
 
                     {% set actions = callstatic('\\Galette\\Core\\Galette', 'getDetailedActions', member) %}
                     {% for action in actions %}
-                                {{ macros.drawDetailedAction(action.label, action.title, action.route, action.icon) }}
+                                {{ macros.drawDetailedAction(action.label, action.title ?? '', action.route, action.icon) }}
                     {% endfor %}
                 {% endif %}
                                 </div>