View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
16942Bug reportsSurvey participants (Tokens)public2021-01-05 12:55
Reporterliantis_pieterjan Assigned Toollehar  
PrioritynoneSeveritypartial_block 
Status closedResolutionno change required 
Product Version3.22.6 
Summary16942: submitdate is null after completing a response
Description

It is possible for a user to complete a survey, which afterwards appears to be both completed and not completed
depending on how the status is determined.

This was blocking for us because we have a plugin which is executed on afterSurveyComplete, which is not being
called in these situations.

Some logic uses response's submitdate != null to check whether something is completed.
Other logic will check on token's completed or usesleft field to know whether its completed

Steps To Reproduce
TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)3.22.6+200219
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMariaDB 10.5.4 ?
Server OS (if known)
Webserver software & version (if known)
PHP Version7.3.19 ?

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2021-01-04 17:53

developer   ~61418

Last edited: 2021-01-04 17:54

Can you send a litlle lss for demo ?

Some settings can be important : if you don't set Token Response persistence : 2 response are created : can you check ALL reponse ? Last one must be submitted …

https://manual.limesurvey.org/Participant_settings#Enable_token-based_response_persistence

liantis_pieterjan

liantis_pieterjan

2021-01-04 18:02

reporter   ~61419

There is only a single response for the token, so this is not an issue where there are multiple responses linked to a single token.

In these screenshots you can see the discrepancy between the participants/tokens view and the responses view.
(it's the dutch version :-) )

Also added the lss export as requested.

Capture1.PNG (103,488 bytes)
Capture2.PNG (90,377 bytes)   
Capture2.PNG (90,377 bytes)   
DenisChenu

DenisChenu

2021-01-04 18:52

developer   ~61423

I ask for a LITTLE lss

Can not reproduce on 3.25.6

The link to response is bad (it goes the the 1st one) but the second is OK

liantis_pieterjan

liantis_pieterjan

2021-01-04 21:51

reporter   ~61425

Ok, I'll check tomorrow on acspri/limesurvey:3.25.6-lts whether I can reproduce it.

liantis_pieterjan

liantis_pieterjan

2021-01-05 12:22

reporter   ~61429

I can easily reproduce the issue on version 3.25.6+201229

I have attached a minimal lss file.
I have also attached an export of the responses which contains 1 finished response which has submit date null, but the token is seen as completed.

To reproduce for this specific lss file:

results-survey716132.csv (497 bytes)   
"Response ID","Date submitted","Last page","Start language","Seed","Token","Date started","Date last action","Question 1","Question 2","Question 3","Some question","Total time","Group time: group 1","Question time: question1","Question time: question2","Question time: Question3","Group time: group2","Question time: somequestion"
"1","","1","en","837595160","D9Ux1rlFhxwLGqP","2021-01-05 11:13:32","2021-01-05 11:13:44","Some question","fgfgfg","fgfgfgf","","12.39","12.39","","","","",""

results-survey716132.csv (497 bytes)   
liantis_pieterjan

liantis_pieterjan

2021-01-05 12:52

reporter   ~61430

Ah wait, there is a difference compared to 3.22.6.
Even though the setting "Enable token-based response persistence" is off,
and also the setting "Allow multiple responses or update responses with one token" is off
it now has 2 responses for the same token. One incomplete response and one complete response.

In version 3.22.6 it only had 1 incomplete response for the token.

Ok, feel free to close the issue.. we can now decide whether we upgrade or create a workaround for the old version.

Issue History

Date Modified Username Field Change
2021-01-04 16:45 liantis_pieterjan New Issue
2021-01-04 17:53 DenisChenu Note Added: 61418
2021-01-04 17:54 DenisChenu Note Edited: 61418
2021-01-04 18:02 liantis_pieterjan Note Added: 61419
2021-01-04 18:02 liantis_pieterjan File Added: Capture1.PNG
2021-01-04 18:02 liantis_pieterjan File Added: Capture2.PNG
2021-01-04 18:02 liantis_pieterjan File Added: limesurvey_survey_424687.lss
2021-01-04 18:52 DenisChenu Note Added: 61423
2021-01-04 18:52 DenisChenu File Added: Capture d’écran du 2021-01-04 18-50-51.png
2021-01-04 21:51 liantis_pieterjan Note Added: 61425
2021-01-05 12:22 liantis_pieterjan Note Added: 61429
2021-01-05 12:22 liantis_pieterjan File Added: limesurvey_survey_716132.lss
2021-01-05 12:22 liantis_pieterjan File Added: results-survey716132.csv
2021-01-05 12:52 liantis_pieterjan Note Added: 61430
2021-01-05 12:55 ollehar Assigned To => ollehar
2021-01-05 12:55 ollehar Status new => closed
2021-01-05 12:55 ollehar Resolution open => fixed
2021-01-05 12:55 ollehar Resolution fixed => no change required