Skip to content

Commit 81969b4

Browse files
committed
adds check on template vars
1 parent 2fc88a7 commit 81969b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/resources/com/aventstack/extentreports/templates/commons/commons-variables.ftl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<#assign
22
config=this.config()
3-
theme=config.theme?lower_case
3+
theme=""
44
timeStampFormat=config.timeStampFormat
5-
offline=config.offlineMode
5+
offline=false
66
reportType=""
77
parentHeading="Tests"
88
childHeading="Steps"
@@ -12,6 +12,8 @@
1212
chartHeight="90"
1313
chartBoxHeight="94"
1414
displayEvents=true>
15+
<#if config.theme??><#assign theme=config.theme?lower_case></#if>
16+
<#if config.offlineMode??><#assign offline=config.offlineMode></#if>
1517
<#if report.stats.analysisStrategy=="SUITE">
1618
<#assign
1719
parentHeading="Suite"

0 commit comments

Comments
 (0)