From 7dd68e3c555aa05674e86d750e7ac6f2c71e9829 Mon Sep 17 00:00:00 2001 From: Tom Reijnders Date: Fri, 30 Dec 2022 12:33:08 +0100 Subject: [PATCH] Fix #1188 - In some older adaptiveContents pages 'null' is shown as a header for the advice --- .../Nottingham/models_html5/adaptiveContent.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/xerte/parent_templates/Nottingham/models_html5/adaptiveContent.html b/modules/xerte/parent_templates/Nottingham/models_html5/adaptiveContent.html index 4d7675cd0..ee95472ba 100644 --- a/modules/xerte/parent_templates/Nottingham/models_html5/adaptiveContent.html +++ b/modules/xerte/parent_templates/Nottingham/models_html5/adaptiveContent.html @@ -1135,7 +1135,9 @@ ""; } let adviceHeader = ""; - if (interaction.children.length !== 0 && adaptiveContent.dashboardMode !== 'true') { + if (interaction.children.length !== 0 + && adaptiveContent.dashboardMode !== 'true' + && interaction.getAttribute("AdviceText") != null) { adviceHeader = `

${interaction.getAttribute("AdviceText")}

`; }