View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
15385Bug reportsSurvey takingpublic2026-10-26 17:42
ReporterDenisChenu Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version3.18.x 
Summary15385: Still an issue with Ranking : rank condition in logic file is invalid …
Description

The logic file for a ranked question

  1. Is invalid if answer have numeric value
  2. is empty if answer are not numeric value.
Steps To Reproduce

Import included survey : test : it's OK
Check question logic file : it's not OK …

Additional Information

Since the error is shown in EM logic file, but fixed in _validateQuestion : it's OK in survey taking
Maybe 1st step is to fix the point 1, and disable relevance on ranking subquestionns (column).

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)3.18.0 git
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
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2025-11-20 16:42

administrator   ~83878

@DenisChenu: I don't understand the issue but it still seems to exist.

DenisChenu

DenisChenu

2025-11-20 16:49

developer   ~83881

OK !

Got it :

When using Array filter attribute on ranking question : filter apply to "answer" see thescreencast (here the text one, two three etc …)
But : Expression logic file is false : you see condition on ranking one (here C1x0_1) etc , but ther are no condition here (expect the number of answers).

OK ?
Hard to explain : but clearly Expressin logic part on C1x0_1 to C1x0_4 are false

c_schmitz

c_schmitz

2026-10-26 17:42

administrator   ~86872

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

Related Changesets

LimeSurvey: master 67cbd293

2026-10-26 17:42

c_schmitz


Details Diff
Fixed issue 15385: Survey logic file showed the array filter of a ranking question on the ranks instead of on the ranking items
Dev The rank fields are named after the first ranking items, so the logic file showed the item filters on the rank rows; the items are now listed with their own filter like answer options
Affected Issues
15385
mod - application/helpers/expressions/em_manager_helper.php Diff File
add - tests/data/surveys/limesurvey_survey_15385_ranking_array_filter.lss Diff File
add - tests/unit/helpers/SurveyLogicFileRankingArrayFilterTest.php Diff File

Issue History

Date Modified Username Field Change
2019-10-08 08:22 DenisChenu New Issue
2019-10-08 08:22 DenisChenu Status new => assigned
2019-10-08 08:22 DenisChenu Assigned To => ollehar
2019-10-08 08:22 DenisChenu File Added: limesurvey_survey_RankingFilterBadLogic.lss
2019-10-08 08:22 DenisChenu File Added: Capture d’écran du 2019-10-08 08-21-15.png
2019-10-08 17:04 DenisChenu Relationship added related to 15369
2019-10-09 11:43 ollehar Relationship added related to 13001
2019-10-09 12:16 ollehar Relationship deleted related to 13001
2025-11-20 16:40 c_schmitz Assigned To ollehar =>
2025-11-20 16:40 c_schmitz Status assigned => new
2025-11-20 16:41 c_schmitz Bug heat 4 => 2
2025-11-20 16:41 c_schmitz Bug heat 2 => 0
2025-11-20 16:41 c_schmitz Relationship deleted related to 15369
2025-11-20 16:42 c_schmitz Note Added: 83878
2025-11-20 16:42 c_schmitz Bug heat 0 => 2
2025-11-20 16:43 DenisChenu Bug heat 2 => 4
2025-11-20 16:49 DenisChenu Note Added: 83881
2025-11-20 16:49 DenisChenu File Added: Capture vidéo du 2025-11-20 16-46-12.mp4
2026-10-26 17:42 c_schmitz Changeset attached => LimeSurvey master 67cbd293
2026-10-26 17:42 c_schmitz Note Added: 86872
2026-10-26 17:42 c_schmitz Assigned To => c_schmitz
2026-10-26 17:42 c_schmitz Status new => resolved
2026-10-26 17:42 c_schmitz Resolution open => fixed