Dependency Graph View Issue Relation Graph Vertical
related to child of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
14507Bug reports[All Projects] Theme editorpublic2019-04-30 09:11
ReporterDenisChenuAssigned ToDenisChenu 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.15.x 
Target VersionFixed in Version 
Summary14507: Unable to use some needed var in EM twig
Description

Using SAVEDID or TOKEN show empty string in some twig files (question.twig here, but same with completed.twig

Steps To Reproduce

Import included theme + included survey, test a token

Additional Information

SAVEDID : really needed
TOKEN : can be replaced by TOKEN:TOKEN

Other one ? Why this ones and not SURVEYRESSOURCEURL ?

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.15.8 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database & DB-Versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Activities

DenisChenu

DenisChenu

2019-02-08 15:14

developer  

SAVEDID_vanilla.zip (112,736 bytes)
survey_archive_SAVEDID.lsa (4,130 bytes)
DenisChenu

DenisChenu

2019-02-08 15:31

developer   ~50471

The big question : why it's OK for TEMPLATEURL (only in template replace) and not SAVEDID : same function ?

DenisChenu

DenisChenu

2019-02-08 15:42

developer   ~50472

OK : git it
getStandardsReplacementFields seems done before survey is started : no SAVEDID at this time, relaunch after : SAVEDID is here
For token : seems usage of global + at first page : get it via GET (global $token). But why it disappear ?

DenisChenu

DenisChenu

2019-02-09 13:52

developer   ~50480

Oh, better understanding : SAVEDID and TOKEN are filled at start of survey, before survey is saved or session is filled.
Since it's filled like a static var : it's not updated … need a way to update WITHOUT delete other tempVars …

DenisChenu

DenisChenu

2019-02-12 08:50

developer   ~50509

https://github.com/LimeSurvey/LimeSurvey/pull/1216

DenisChenu

DenisChenu

2019-02-12 08:51

developer   ~50510

I must test with optout where TOKEN seems needed, but i think tempVars replace coreVars

DenisChenu

DenisChenu

2019-02-26 19:00

developer   ~50689

https://github.com/LimeSurvey/LimeSurvey/commit/678f47a5f7360319c87055efc8a50c8b7409cdd9

Issue History

Date Modified Username Field Change
2019-02-08 15:14 DenisChenu New Issue
2019-02-08 15:14 DenisChenu Status new => assigned
2019-02-08 15:14 DenisChenu Assigned To => DenisChenu
2019-02-08 15:14 DenisChenu File Added: SAVEDID_vanilla.zip
2019-02-08 15:14 DenisChenu File Added: survey_archive_SAVEDID.lsa
2019-02-08 15:14 DenisChenu File Added: Capture d’écran du 2019-02-08 15-12-34.png
2019-02-08 15:15 DenisChenu Relationship added related to 14415
2019-02-08 15:16 DenisChenu Description Updated View Revisions
2019-02-08 15:31 DenisChenu Note Added: 50471
2019-02-08 15:42 DenisChenu Note Added: 50472
2019-02-09 13:52 DenisChenu Note Added: 50480
2019-02-12 08:50 DenisChenu Note Added: 50509
2019-02-12 08:51 DenisChenu Note Added: 50510
2019-02-26 19:00 DenisChenu Status assigned => resolved
2019-02-26 19:00 DenisChenu Resolution open => fixed
2019-02-26 19:00 DenisChenu Note Added: 50689
2019-04-30 09:11 c_schmitz Status resolved => closed