View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20336Bug reportsSurvey takingpublic2025-11-04 16:33
ReporterTonisOrmisson Assigned Togabrieljenik  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version6.6.x 
Summary20336: Token/participant record not updated on quota exit, record stays "open"
Description

The token/participant record does not get "closed" with "Q" status on quota end. The token record gets no update on token exit at all.

Tracked the last "working" version to 6.15.5+250724,
6.15.6+250818 adds a timestamp to Complete field instead of "Q"
6.15.7+ don't change the record any more

Seems like somewhere along the changes the $SESSION['survey' . $iSurveyId]['token'] gets wiped.
in the Qotas model if (
$sClientToken
&& in_array($sAction, [
Quota::TERMINATE_VISIBLE_QUOTA_QUESTIONS,
Quota::TERMINATE_VISIBLE_AND_HIDDEN_QUOTA_QUESTIONS,
Quota::TERMINATE_ALL_PAGES
], true)
) {
submittokens(true);
}
$sClientToken is empty and the update is not done.

Steps To Reproduce

Steps to reproduce

  1. Take a closed access survey with tokens
  2. Place a quota on a survey, limit 0.
  3. Open a participant link
  4. answer in a way to hit the quota
  5. You get the quota ended message/redirect

Expected result

Respondent record has completed value "Q"
Uses left is -1
Participant cant open the questionnaire any more

Actual result

Respondent record has completed value null
Uses left is unchanged
Participant can open the questionnaire

TagsNo tags attached.
Bug heat0
Complete LimeSurvey version number (& build)6.15.22
I will donate to the project if issue is resolvedNo
Browser
Database type & versionn/a
Server OS (if known)
Webserver software & version (if known)
PHP Versionn/a

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-11-04 14:36 TonisOrmisson New Issue
2025-11-04 16:33 tibor.pacalat Assigned To => gabrieljenik
2025-11-04 16:33 tibor.pacalat Status new => assigned