View Issue Details

IDProjectCategoryView StatusLast Update
14507Bug reports[All Projects] Theme editorpublic2019-02-12 08:51
ReporterDenisChenuAssigned ToDenisChenu 
Status assignedResolutionopen 
Product Version3.15.x 
Target VersionFixed in Version 
Summary14507: Unable to use some needed var in EM twig

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


related to 14415 resolvedDenisChenu Unale to use SAVEDID or some other reponse related var in submit.twig 




2019-02-08 15:14

developer (112,736 bytes)
survey_archive_SAVEDID.lsa (4,130 bytes)


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 ?



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 ?



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 …



2019-02-12 08:50

developer   ~50509



2019-02-12 08:51

developer   ~50510

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

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:
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