View Issue Details

IDProjectCategoryView StatusLast Update
16020Bug reportsExpression Managerpublic2020-03-22 16:46
Reporterjakobwoegerbauer Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version4.1.10 
Summary16020: variable SURVEYNAME undefined in Welcometext/Description but working in logic check
Description

The variable SURVEYNAME is undefined in the welcome text when executing the survey.
It does work in the survey logic view ("No syntax errors detected in this survey.").
Additionally the correct surveyname is displayed when hovering over the variable.

Steps To Reproduce

Create a new survey with {SURVEYNAME} in the welcome text or the description.
Execute the survey -> undefined variable
Check survey logic -> seems like everything is ok

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 4.1.10+200311
I will donate to the project if issue is resolvedNo
BrowserFirefox 74.0
Database & DB-VersionMSSQL, Microsoft SQL Server 14.0
Server OS (if known)Windows Server 2016
Webserver software & version (if known)IIS 10.0.14393.0
PHP Version7.2.7

Activities

jakobwoegerbauer

jakobwoegerbauer

2020-03-22 16:46

reporter   ~56725

It looks like in SurveyRuntimeHelper.run() LimeExpressionManager::updateReplacementFields() is called after the twig template is rendered (displayFirstPageIfNeeded()) and templatereplace() isn't called either, since LimeExpressionManager::StartProcessingPage() is called with $initializeVars=false.

Issue History

Date Modified Username Field Change
2020-03-22 14:40 jakobwoegerbauer New Issue
2020-03-22 16:46 jakobwoegerbauer Note Added: 56725