From 164a5501c00ff1eb14ecd8079de0e76f0fdeb840 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 15 Sep 2021 22:58:09 +0200 Subject: [PATCH] Add missing condition for compiled JS dictionaries --- sources/application/WebPage/iTopWebPage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sources/application/WebPage/iTopWebPage.php b/sources/application/WebPage/iTopWebPage.php index e8b1cd52c..82198c3a8 100644 --- a/sources/application/WebPage/iTopWebPage.php +++ b/sources/application/WebPage/iTopWebPage.php @@ -833,7 +833,10 @@ HTML; // Prepare internal parts (js files, css files, js snippets, css snippets, ...) // - Generate necessary dict. files - $this->output_dict_entries(); + if ($this->bAddJSDict) { + $this->output_dict_entries(); + } + // TODO 3.0.0 not displayed ? $this->GetContentLayout()->SetExtraHtmlContent(utils::FilterXSS($this->s_content));