View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
16482Bug reportsSurvey takingpublic2026-10-07 23:33
ReporterDenisChenu Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.22.25 
Summary16482: Prefill value broke survey policy (and GPDR ?)
Description

Add a prefill value create survey before it was started, then without Survey policy was accepted

Steps To Reproduce

Import included survey
Activate
Copy start link
Open a private browsing
Paste survey start link
Look at response : no response : OK
Open another private browsing
Add &uid=ID to start link
Paste update start link : see checkbox about policy not checked
Return to browse response : see the response created

Additional Information

My opinion

Then prefill value are set only at good step :)

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)3.22.25
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant ?
Webserver software & version (if known)not relevant ?
PHP Versionnot relevant ?

Relationships

child of 16481 closedDenisChenu Easy way to launch CDBException 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2020-07-16 09:39

developer   ~58968

@ollehar & @cdorin : i think i can take some time on this issue? What do you think about not fixing in 3LTS ? I think update and move it only after like default_value is the best solution.

But then : it can update some survey behaviour, maybe some user use it to know someone click on a link …

DenisChenu

DenisChenu

2020-07-16 11:27

developer   ~58969

I muts check if https://github.com/LimeSurvey/LimeSurvey/commit/cb2424333afee56810cf9f91ee8e8a2bda24e644 didn't create this issue …

DenisChenu

DenisChenu

2020-07-16 11:30

developer   ~58970

OK,
git checkout afcb6572b5fa5a843265b643390307dacad1291e
Check : still happen :)

gabrieljenik

gabrieljenik

2021-01-12 17:42

developer   ~61504

Use prefiilling like 'defaultvalue' :
I understand that your idea, is setting the prefill value as default value. Then the question validation will save the value on the DB.
Is that correct?

Sorry, not too fan of that idea.
Why not setting the prefill values to the starting values at the very beggining.
Starting values are already being saved well, right?
(I mean starting values don't show the issue, right? From the code I think they do)

DenisChenu

DenisChenu

2021-01-12 17:55

developer   ~61505

I understand that your idea, is setting the prefill value as default value. Then the question validation will save the value on the DB.

Yes, but right : it something to mind : only when question are shown (or step are done) …

Something to check too : prefiled value must be deleted when step of question happen and relevance is 0 ;) i think it's the case currently.

Why not setting the prefill values to the starting values at the very beggining.

Because it broke survey policy

Starting values are already being saved well, right?

on 3.22.25 : saved too soon (survey not started)

(I mean starting values don't show the issue, right? From the code I think they do)

?

c_schmitz

c_schmitz

2026-10-06 09:52

administrator   ~86205

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40672

LimeBot

LimeBot

2026-10-07 23:33

administrator   ~86248

Fixed in Release 7.5.1+261007

Related Changesets

LimeSurvey: master c154c08d

2026-10-06 09:52

c_schmitz

Committer: GitHub


Details Diff
Fixed issue 16482: Opening a survey link with prefilled values created a response before the survey policy was accepted (05392) Affected Issues
16482
mod - application/helpers/expressions/em_manager_helper.php Diff File
add - tests/data/surveys/limesurvey_survey_PrefillBeforeSurveyPolicy.lss Diff File
add - tests/unit/helpers/PrefillBeforeSurveyPolicyTest.php Diff File

Issue History

Date Modified Username Field Change
2020-07-10 09:30 DenisChenu New Issue
2020-07-10 09:30 DenisChenu File Added: limesurvey_survey_prefilltest.lss
2020-07-10 09:30 DenisChenu File Added: Capture d’écran du 2020-07-10 09-27-15.png
2020-07-10 09:31 DenisChenu Relationship added child of 16481
2020-07-16 09:39 DenisChenu Note Added: 58968
2020-07-16 11:27 DenisChenu Note Added: 58969
2020-07-16 11:30 DenisChenu Note Added: 58970
2021-01-12 17:42 gabrieljenik Note Added: 61504
2021-01-12 17:55 DenisChenu Note Added: 61505
2026-10-03 10:27 c_schmitz Status new => ready for code review
2026-10-06 09:52 c_schmitz Changeset attached => LimeSurvey master c154c08d
2026-10-06 09:52 c_schmitz Note Added: 86205
2026-10-06 09:52 c_schmitz Assigned To => c_schmitz
2026-10-06 09:52 c_schmitz Status ready for code review => resolved
2026-10-06 09:52 c_schmitz Resolution open => fixed
2026-10-06 09:52 c_schmitz Bug heat 4 => 6
2026-10-07 23:33 LimeBot Note Added: 86248
2026-10-07 23:33 LimeBot Status resolved => closed
2026-10-07 23:33 LimeBot Bug heat 6 => 8