From 2060818ac17920f13819184161a40774539c6466 Mon Sep 17 00:00:00 2001 From: Alexandre Gain Date: Sat, 21 Nov 2026 21:14:50 +0100 Subject: [PATCH] fix(call-script): 500 on the list page - render the category title The list rendered item.category.name. The Category entity has no getName() (only getTitle()), so Twig fell back to CommonEntity::__call('name'), which throws "Method name not exists" - a 500 as soon as a script had a category. Use the same null-guarded item.category.title pattern as the program list. --- Resources/views/CallScript/list.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/CallScript/list.html.twig b/Resources/views/CallScript/list.html.twig index b36e947..1870e31 100644 --- a/Resources/views/CallScript/list.html.twig +++ b/Resources/views/CallScript/list.html.twig @@ -93,7 +93,7 @@ {{ item.name }} {% endif %} - {{ item.category.name|default('—') }} + {{ item.category ? item.category.title : '—' }} {% if item.isPublished %} {{ 'mt3s.call_script.list.published'|trans }}