View Issue Details

This issue affects 1 person(s).
 12
IDProjectCategoryView StatusLast Update
20730Bug reportsEncryptionpublic2026-10-13 11:49
Reportertibor.pacalat Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version7.3.x 
Summary20730: Quotas are not working on encrypted questions
Description

I noticed that if I have a quota on encrypted question it does not trigger as expected.

Steps To Reproduce

Steps to reproduce

  1. import survey lsa file in attachment
  2. answer first question with "Option A"
  3. quota should trigger, but doesn't

Expected result

Quota should work on encrypted question the same as on non encrypted one.

Actual result

Quota doesn't work on encrypted question.

TagsNo tags attached.
Attached Files
Bug heat12
Complete LimeSurvey version number (& build)7.3.0+260922
I will donate to the project if issue is resolvedNo
Browser
Database type & version.
Server OS (if known)
Webserver software & version (if known)
PHP Version.

Relationships

has duplicate 20731 closedtibor.pacalat Quotas are not working on encrypted questions 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2026-09-28 09:45

developer   ~86031

Quota should work on encrypted question the same as on non encrypted one.

Not if you use real encryption! (in maybe next release)
github.com/LimeSurvey/LimeSurvey/pull/4459

(can be added, but only after this one is merged!)

c_schmitz

c_schmitz

2026-10-12 11:35

administrator   ~86332

Last edited: 2026-10-12 11:35

@DenisChenu Is it fixed in #19645 ?

DenisChenu

DenisChenu

2026-10-12 13:44

developer   ~86336

No, I didn't touch at qiota.

Quotas cannot be applied to encrypted questions when hardened encryption is enabled. They can be only supported with simple encryption.

For simple encryption, the fix is trivial.

c_schmitz

c_schmitz

2026-10-12 16:03

administrator   ~86340

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

DenisChenu

DenisChenu

2026-10-12 16:59

developer   ~86342

(I must update the PR for hardened crypt method now ...)

LimeBot

LimeBot

2026-10-13 11:49

administrator   ~86366

Fixed in Release 7.6.0+261013

Related Changesets

LimeSurvey: master 9b20f012

2026-10-12 16:03

c_schmitz


Details Diff
Fixed issue 20730: Quotas on encrypted questions never triggered
Dev Quota::getCompleteCount() compared the plain answer code against the encrypted response column, so the count was always 0; it now compares against the encrypted value
Affected Issues
20730
mod - application/models/Quota.php Diff File
add - tests/unit/models/QuotaEncryptedCompleteCountTest.php Diff File

Issue History

Date Modified Username Field Change
2026-09-28 09:30 tibor.pacalat New Issue
2026-09-28 09:30 tibor.pacalat File Added: survey_archive_542957.lsa
2026-09-28 09:45 DenisChenu Note Added: 86031
2026-09-28 09:45 DenisChenu Bug heat 0 => 2
2026-09-28 09:46 DenisChenu Relationship added has duplicate 20731
2026-09-28 09:46 DenisChenu Bug heat 2 => 8
2026-10-12 11:35 c_schmitz Note Added: 86332
2026-10-12 11:35 c_schmitz Bug heat 8 => 10
2026-10-12 11:35 c_schmitz Note Edited: 86332
2026-10-12 11:44 c_schmitz Status new => confirmed
2026-10-12 13:44 DenisChenu Note Added: 86336
2026-10-12 16:03 c_schmitz Changeset attached => LimeSurvey master 9b20f012
2026-10-12 16:03 c_schmitz Note Added: 86340
2026-10-12 16:03 c_schmitz Assigned To => c_schmitz
2026-10-12 16:03 c_schmitz Status confirmed => resolved
2026-10-12 16:03 c_schmitz Resolution open => fixed
2026-10-12 16:59 DenisChenu Note Added: 86342
2026-10-13 11:49 LimeBot Note Added: 86366
2026-10-13 11:49 LimeBot Status resolved => closed
2026-10-13 11:49 LimeBot Bug heat 10 => 12