View Issue Details

IDProjectCategoryView StatusLast Update
13001Bug reports[All Projects] Expression Managerpublic2018-01-16 15:11
Reporteroc25Assigned ToDenisChenu 
PriorityhighSeveritymajor 
Status assignedResolutionopen 
Product Version2.7x.x 
Target Version3.0.xFixed in Version 
Summary13001: Expression Manager evaluates answers to free text questions enclosed by "{" and "}"
DescriptionI created 3 questions with Short free text, Long free text and Huge free text.

If I enter {1+2+3+4} as answers, the answers become 10 when the page is displayed again due to some validation errors.
Steps To Reproduce1. import the attached survey
2. execute the survey
3. put "{1+2+3+4}" as the answers to the first 3 questions and do not answer the yes / no question
4. click "submit" and system will prompt for missing mandatory answers
5. all answers become "10"
TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 2.72.6+171207
I will donate to the project if issue is resolvedNo
BrowserChrome 62.0.3202.94
Database & DB-VersionMySql
Operating System (Server)Windows 2012 Server
Webserver software & versionApache 2.4.12
PHP Version5.5.25

Activities

oc25

oc25

2017-12-09 20:11

reporter  

limesurvey_survey_322944.lss (14,168 bytes)
oc25

oc25

2017-12-09 20:15

reporter  

2.PNG (27,213 bytes)
2.PNG (27,213 bytes)
1.PNG (20,252 bytes)
1.PNG (20,252 bytes)
oc25

oc25

2017-12-09 20:28

reporter   ~45272

Maybe we can escape the "{" and "}" characters again in the return value of $this->GetResult() ?

em_core_helper.php - Line 1944:
$resolvedPart = $this->GetResult();
DenisChenu

DenisChenu

2017-12-16 11:44

developer   ~45314

2.6lts have the same issue, the real issue is EM core didn't know what he receive at this time (he receive EXPRESSION, not a variable)

Hard to fix but must find a way …
DenisChenu

DenisChenu

2017-12-16 12:10

developer   ~45315

Potential fix : https://github.com/LimeSurvey/LimeSurvey/pull/899

Issue History

Date Modified Username Field Change
2017-12-09 20:11 oc25 New Issue
2017-12-09 20:11 oc25 File Added: limesurvey_survey_322944.lss
2017-12-09 20:15 oc25 File Added: 1.PNG
2017-12-09 20:15 oc25 File Added: 2.PNG
2017-12-09 20:28 oc25 Note Added: 45272
2017-12-11 15:55 DenisChenu Severity minor => major
2017-12-16 11:44 DenisChenu Note Added: 45314
2017-12-16 12:10 DenisChenu Assigned To => DenisChenu
2017-12-16 12:10 DenisChenu Status new => assigned
2017-12-16 12:10 DenisChenu Note Added: 45315
2017-12-20 21:31 DenisChenu Target Version => 3.0.x
2018-01-16 15:11 DenisChenu Priority none => high