View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20272Bug reportsImport/Exportpublic2026-10-29 16:48
Reporterjoseptaus Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status resolvedResolutionfixed 
Product Version6.6.x 
Summary20272: Conditions do not function at a survey imported from 3.5 to 6.15
Description

A survey with fields with conditions that functions perfectly at the version 3.5.4+180320 and can export it at the version 6.15.11+250909 without any error message.

But when I executed it, conditions do not function.

Steps To Reproduce

Import survey.
Preview survey.
Select "Contracte major" at "Tipus de RC" field.
"Tipus de contracte" question must appear.

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)6.15.11+250909
I will donate to the project if issue is resolvedNo
BrowserFirefox ESR
Database type & versionPostgresql 15
Server OS (if known)Debian 12
Webserver software & version (if known)apache2 2.4.65-1~deb12u1
PHP Version8.2
Git branch / Pull Request URL

Users monitoring this issue

joseptaus

Activities

c_schmitz

c_schmitz

2026-10-29 16:48

administrator   ~86987

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

Related Changesets

LimeSurvey: master 1121e0b1

2026-10-29 16:47

c_schmitz


Details Diff
Fixed issue 20272: Conditions did not work on survey pages where a question had a default answer containing an apostrophe (e.g. {date('Y')})
Dev The default value in the Expression Manager JavaScript variable list is now a JSON string literal instead of a JSON string wrapped in single quotes
Affected Issues
20272
mod - application/helpers/expressions/em_manager_helper.php Diff File
add - tests/unit/helpers/DefaultValueJavaScriptTest.php Diff File

Issue History

Date Modified Username Field Change
2025-09-19 14:47 joseptaus New Issue
2025-09-19 14:47 joseptaus File Added: limesurvey_survey_537845.lss
2025-09-19 14:48 joseptaus Issue Monitored: joseptaus
2025-09-19 14:48 joseptaus Bug heat 0 => 2
2026-10-29 16:48 c_schmitz Changeset attached => LimeSurvey master 1121e0b1
2026-10-29 16:48 c_schmitz Note Added: 86987
2026-10-29 16:48 c_schmitz Assigned To => c_schmitz
2026-10-29 16:48 c_schmitz Status new => resolved
2026-10-29 16:48 c_schmitz Resolution open => fixed
2026-10-29 16:48 c_schmitz Bug heat 2 => 4