View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
16230Bug reportsExpression Managerpublic2021-07-19 09:29
ReporterDenisChenu Assigned Togalads  
PrioritynoneSeverityminor 
Status confirmedResolutionopen 
Product Version4.2.2 
Summary16230: Reload survey (token answer persistence) don't really reload …
DescriptionWhen using Equation to set question (if empty) : https://manual.limesurvey.org/Expression_Manager#Using_Assignment_Operator
This work when we are inside survey, but when reload survey (with token answer persistence) : data is resetted
Steps To ReproduceImport included survey,
Test a token link with newtest
Entre something other than 'prefilled'
Move next save
Quit browser
Open bronser and test again

See screencast
Additional Information2.6lts and 3.22 have the same issue.

Then : muts not "fix" for 4, but must document it ?
TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)4.2.2 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 Version7

Activities

DenisChenu

DenisChenu

2020-05-05 17:06

developer  

Peek 05-05-2020 17-05.gif (357,662 bytes)
DenisChenu

DenisChenu

2020-06-29 13:21

developer   ~58540

Related to relevanceStatus : …
DenisChenu

DenisChenu

2021-06-23 08:52

developer   ~65002

Last edited: 2021-07-08 12:18

Partial fix (muts be improved)

- https://gitlab.com/SondagesPro/coreAndTools/reloadAnyResponse/-/commit/c7e59524e4398f940ba829de9b418ef4d965873f
- https://gitlab.com/SondagesPro/coreAndTools/reloadAnyResponse/-/commit/966794b13e3c50cb2822f43e25becaacf8b559d9

Then maybe a better solution are :

- create a maxpage column in database : have lastpage + maxpage
- when reload : LimeExpressionManager::JumpTo($maxpage, false, false, true); + LimeExpressionManager::JumpTo($lastpage, false, false, true);
galads

galads

2021-07-08 12:13

administrator   ~65259

Last edited: 2021-07-08 12:18

@DenisChenu will you like to create a pull request with the partial fix? I will create a task for the better solution you have mentioned and it will be picked up at a later stage
DenisChenu

DenisChenu

2021-07-19 09:29

developer   ~65505

By Partial fix : it's usage of the whole plugin … and clearly : this one is here for a lot of other things ;)

Issue History

Date Modified Username Field Change
2020-05-05 17:06 DenisChenu New Issue
2020-05-05 17:06 DenisChenu File Added: survey_archive_reloadAndSetIfEmpty.lsa
2020-05-05 17:06 DenisChenu File Added: Peek 05-05-2020 17-05.gif
2020-06-29 13:21 DenisChenu Note Added: 58540
2021-06-23 08:52 DenisChenu Note Added: 65002
2021-07-05 10:29 galads Assigned To => galads
2021-07-05 10:29 galads Status new => testing
2021-07-08 12:13 galads Note Added: 65259
2021-07-08 12:14 galads Assigned To galads => DenisChenu
2021-07-08 12:14 galads Status testing => assigned
2021-07-19 08:59 galads Assigned To DenisChenu => galads
2021-07-19 08:59 galads Status assigned => confirmed
2021-07-19 09:29 DenisChenu Note Added: 65505