From 8bf502057ac00072ff2aaa635863498873465e61 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 18 Dec 2024 14:46:52 +0100 Subject: [PATCH 1/2] Header hooks Timeline --- templates/components/itilobject/timeline/timeline.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/itilobject/timeline/timeline.html.twig b/templates/components/itilobject/timeline/timeline.html.twig index d9f7aff35ef..446d8f71920 100644 --- a/templates/components/itilobject/timeline/timeline.html.twig +++ b/templates/components/itilobject/timeline/timeline.html.twig @@ -169,7 +169,7 @@ {% if matching_types|length > 0 %} {% set timeline_itemtype = matching_types|first %} {% if timeline_itemtype.template is defined %} - {{ include(timeline_itemtype.template, {'form_mode': 'view'}) }} + {{ include(timeline_itemtype.template, {'form_mode': 'view', 'subitem': timeline_itemtype.item}}) }} {% endif %} {% endif %} {% else %} From 9cf5d60ed7f8d6a96ff2ffb814d44dd8707b26d8 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 20 Dec 2024 09:11:54 +0100 Subject: [PATCH 2/2] Fix include --- templates/components/itilobject/timeline/timeline.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/itilobject/timeline/timeline.html.twig b/templates/components/itilobject/timeline/timeline.html.twig index 446d8f71920..0a712ec5c12 100644 --- a/templates/components/itilobject/timeline/timeline.html.twig +++ b/templates/components/itilobject/timeline/timeline.html.twig @@ -169,7 +169,7 @@ {% if matching_types|length > 0 %} {% set timeline_itemtype = matching_types|first %} {% if timeline_itemtype.template is defined %} - {{ include(timeline_itemtype.template, {'form_mode': 'view', 'subitem': timeline_itemtype.item}}) }} + {{ include(timeline_itemtype.template, {'form_mode': 'view', 'subitem': timeline_itemtype.item}) }} {% endif %} {% endif %} {% else %}