View Issue Details

This issue affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20834Bug reportsConditionspublic2026-11-07 22:16
Reporterc_schmitz Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version7.9.x 
Summary20834: Condition designer: question with Condition '1' shows 'uses a customized condition' instead of 'always shown'
Description

In the classic condition designer, a question whose condition (relevance) is '1' - the default of new questions - shows the note 'Note: This question uses a customized condition. If you create a condition using this editor the current customized condition will be overwritten.' instead of 'This question is always shown.'

Cause: application/models/services/SurveyCondition.php line 1608:
} elseif (!empty(trim((string) $oQuestion->relevance)) || trim((string) $oQuestion->relevance) == '1') {
The second part makes '1' count as a customized condition; it should exclude '1' (e.g. && trim(...) !== '1').

Steps To Reproduce
  1. Classic editor: create a question (Condition = 1).
  2. Open Tools > Condition designer for it.
  3. The yellow 'customized condition' note is shown instead of 'This question is always shown.'
Additional Information

Found while documenting conditions for the manual.

TagsNo tags attached.
Bug heat0
Complete LimeSurvey version number (& build)7.9.1
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 URLN/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
2026-11-07 22:16 c_schmitz New Issue