View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
14467Bug reportsDocumentationpublic2026-10-20 17:06
ReporterDenisChenu Assigned Toc_schmitz  
PrioritylowSeverityminor 
Status closedResolutionfixed 
Product Version3.15.x 
Summary14467: EM : relevance not being recalculated after conditions updated if question are shown before
Description

When a relevance update a question : if order is OK : it's good. But with a different order : it can be bad

With 3 question , in order Q1, Q2,Q3
If Q3 have a condition on Q2
Q1 have a condition on Q3

If Q1 are shown , it still shown even if Q3 is hidden by relevance

Steps To Reproduce

Import included LSS and test

Additional Information

This is related to 14465
But i think it muts be a Won't fix , because :

  1. It's hard to fix …
  2. I already trying triggering event after relevance update : javascript loop or very long …
  3. It's seems logic than relevance get only previusly seen question
  4. It can be easily fixed adding the relevance function of Q3 to Q1.

BUT maybe : you think it must be fixed (i have no idea currently)
And more : i think this must be documented somewhere at manual.

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)3.15.8 github
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

Relationships

related to 14955 closedDenisChenu Question relevance is not reassessed after group is shown 
child of 14465 closedDenisChenu EM relevance not being recalculated after conditions changed (Full survey included) 

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2019-01-30 15:01

updater   ~50345

I consider this a WON'T FIX because e.g. at the default condition editor tool, you can't set a condition at question X based on question Y if question Y is shown after question X. The editor only shows previous questions and since survey are always run in proper sequential order, the conditions mentioned above would be invalid.

DenisChenu

DenisChenu

2019-01-30 17:04

developer   ~50348

OK great :).

I move it to "manual"

@cdorin : you can have a look for manual ?

c_schmitz

c_schmitz

2026-10-17 10:26

administrator   ~86514

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

c_schmitz

c_schmitz

2026-10-17 10:26

administrator   ~86515

The survey logic check now shows a warning for such conditions.

LimeBot

LimeBot

2026-10-20 17:06

administrator   ~86634

Fixed in Release 7.7.0+261020

Related Changesets

LimeSurvey: master e853267d

2026-10-17 10:24

c_schmitz


Details Diff
Fixed issue 14467: Survey logic check did not warn about conditions that use a later question
Dev Such conditions are only checked in page order and do not react when the later question is shown or hidden; the logic check now shows a warning
Affected Issues
14467
mod - application/helpers/expressions/em_core_helper.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File
add - application/helpers/expressions/warnings/EMWarningLaterQuestion.php Diff File
add - tests/data/surveys/limesurvey_survey_14467_later_question_relevance.lss Diff File
add - tests/unit/helpers/SurveyLogicFileLaterQuestionTest.php Diff File

Issue History

Date Modified Username Field Change
2019-01-30 14:08 DenisChenu New Issue
2019-01-30 14:08 DenisChenu Status new => assigned
2019-01-30 14:08 DenisChenu Assigned To => Mazi
2019-01-30 14:08 DenisChenu File Added: limesurvey_survey_relevanceNotTriggerOtherRelevance.lss
2019-01-30 14:08 DenisChenu File Added: simplescreenrecorder.webm
2019-01-30 14:09 DenisChenu Relationship added child of 14465
2019-01-30 15:01 Mazi Note Added: 50345
2019-01-30 15:01 Mazi Assigned To Mazi => DenisChenu
2019-01-30 17:04 DenisChenu Note Added: 50348
2019-01-30 17:05 DenisChenu Assigned To DenisChenu =>
2019-01-30 17:05 DenisChenu Priority none => low
2019-01-30 17:05 DenisChenu Status assigned => new
2019-01-30 17:05 DenisChenu Category Expression Manager => Documentation
2019-01-30 17:05 DenisChenu Summary EM relevance not being recalculated after conditions updated if question are shown before => EM : relevance not being recalculated after conditions updated if question are shown before
2019-05-30 14:16 DenisChenu Relationship added related to 14955
2019-06-05 15:00 cdorin Assigned To => cdorin
2019-06-05 15:00 cdorin Status new => assigned
2021-02-09 13:44 cdorin Assigned To cdorin =>
2021-02-09 13:44 cdorin Status assigned => acknowledged
2026-10-17 10:26 c_schmitz Changeset attached => LimeSurvey master e853267d
2026-10-17 10:26 c_schmitz Note Added: 86514
2026-10-17 10:26 c_schmitz Assigned To => c_schmitz
2026-10-17 10:26 c_schmitz Status acknowledged => resolved
2026-10-17 10:26 c_schmitz Resolution open => fixed
2026-10-17 10:26 c_schmitz Bug heat 4 => 6
2026-10-17 10:26 c_schmitz Note Added: 86515
2026-10-20 17:06 LimeBot Note Added: 86634
2026-10-20 17:06 LimeBot Status resolved => closed
2026-10-20 17:06 LimeBot Bug heat 6 => 8