View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
20229Bug reportsSurvey participants (Tokens)public2025-09-09 17:35
ReporterMazi Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version6.6.x 
Summary20229: "Uses left" value is not pre-set when creating a new participant leading to the person not being able to start the survey
Description

If you are starting with a fresh participant table and there are no participants listed yet, you can add them by clicking the "Add Participants" button. At the follow-up screen, the "uses left" value is not pre-set with the value of 1 as it is usually done, see screenshot. That leads to a new entry being created with "uses left" and value 0. That causes problems as shown in this bug report (20227) because the user is not allowed to take the survey.

Once additional participants were created, you can easily click "Add Participants" at the menu at the top. At this screen, the "uses left" value is correctly populated with value 1.

Steps To Reproduce

Steps to reproduce

Create a new survey
Enable participant table
Click "Add participants" at the bottom of the table/screen.

Expected result

"Uses left" should be pre-populated with 1

Actual result

"Uses left" is pre-populated with 0.

TagsNo tags attached.
Attached Files
image.png (35,890 bytes)   
image.png (35,890 bytes)   
image-2.png (14,210 bytes)   
image-2.png (14,210 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)6.15.6
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL/MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version8.x

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2025-08-29 13:00

updater   ~83340

@tibor.pacalat, I can safely reproduce this at the latest version. Can you please assign this one?

gabrieljenik

gabrieljenik

2025-09-08 17:38

manager   ~83379

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

guest

guest

2025-09-09 17:34

viewer   ~83383

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

Related Changesets

LimeSurvey: master fc568302

2025-09-09 17:34

Gabriel Jenik

Committer: GitHub


Details Diff
Fixed issue 20229: "Uses left" value is not pre-set when creating a new participant (04430)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
Affected Issues
20229
mod - application/controllers/admin/Tokens.php Diff File

Issue History

Date Modified Username Field Change
2025-08-20 13:21 Mazi New Issue
2025-08-20 13:21 Mazi File Added: image.png
2025-08-20 13:21 Mazi File Added: image-2.png
2025-08-29 13:00 Mazi Note Added: 83340
2025-08-29 13:00 Mazi Bug heat 0 => 2
2025-09-04 12:52 tibor.pacalat Assigned To => gabrieljenik
2025-09-04 12:52 tibor.pacalat Status new => assigned
2025-09-08 17:38 gabrieljenik Assigned To gabrieljenik => DenisChenu
2025-09-08 17:38 gabrieljenik Status assigned => ready for code review
2025-09-08 17:38 gabrieljenik Note Added: 83379
2025-09-08 17:38 gabrieljenik Bug heat 2 => 4
2025-09-08 17:39 DenisChenu Assigned To DenisChenu => tibor.pacalat
2025-09-08 17:39 DenisChenu Status ready for code review => ready for testing
2025-09-09 17:34 Changeset attached => LimeSurvey master fc568302
2025-09-09 17:34 guest Note Added: 83383
2025-09-09 17:34 guest Bug heat 4 => 6
2025-09-09 17:35 tibor.pacalat Status ready for testing => resolved
2025-09-09 17:35 tibor.pacalat Resolution open => fixed