View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
08542Bug reportsConditionspublic2014-01-16 16:45
Reportermofog Assigned ToDenisChenu  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary08542: Compare string and numeric can be different in same page and other page
Description

The attached survey will not save the answers given in the matrix question (question index "q2") if that question depends on a numeric value given in a previous question (here, question index "q1").

If you remove the condition and use relevance instead it works fine:

q1.shown > 100
Steps To Reproduce

Create a simple text or numeric question called q1.
Create a question called q2 that has this condition: ((q1.NAOK > "100")).
Activate and run the survey.
If you enter a value greater than 100 in q1, the JavaScript to show q2 works correct. However, after submitting the survey's results, the answer to q2 will not be saved in the database.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)140109
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysqld Ver 5.1.61-ndb-7.1.22-log for suse-linux-gnu on x86_64 (SUSE MySQL RPM)
Server OS (if known)OpenSuSE
Webserver software & version (if known)Apache/2.2.21 (Linux/SUSE)
PHP Version5.3.8

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2014-01-15 19:10

developer   ~27890

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

DenisChenu

DenisChenu

2014-01-15 19:11

developer   ~27891

Tested with (NUM to 12)
{NUM>"010"}
{NUM<"010"}

Seems OK now.

Tested + and other lt / gt too.

mofog

mofog

2014-01-15 20:12

reporter   ~27892

Wow, that was a fast one. Great!

c_schmitz

c_schmitz

2014-01-16 16:45

administrator   ~27906

2.05+ Build 140116 released

Related Changesets

LimeSurvey: master 408d1cfa

2014-01-15 18:10:04

DenisChenu

Details Diff
Fixed issue 08542: Compare string and numeric can be different in same page and other page
Dev: force comparaison of string in PHP.
Affected Issues
08542
mod - application/helpers/expressions/em_core_helper.php Diff File

Issue History

Date Modified Username Field Change
2014-01-15 11:17 mofog New Issue
2014-01-15 11:17 mofog File Added: limesurvey_survey_897749.lss
2014-01-15 17:44 DenisChenu Assigned To => DenisChenu
2014-01-15 17:44 DenisChenu Status new => assigned
2014-01-15 18:37 DenisChenu Summary Answers will not be saved if bound to numeric condition => Compare string and numeric can be different in same page and other page
2014-01-15 19:10 DenisChenu Changeset attached => LimeSurvey master 408d1cfa
2014-01-15 19:10 DenisChenu Note Added: 27890
2014-01-15 19:10 DenisChenu Resolution open => fixed
2014-01-15 19:11 DenisChenu Note Added: 27891
2014-01-15 19:11 DenisChenu Status assigned => resolved
2014-01-15 19:11 DenisChenu Fixed in Version => 2.05+
2014-01-15 20:12 mofog Note Added: 27892
2014-01-16 16:45 c_schmitz Note Added: 27906
2014-01-16 16:45 c_schmitz Status resolved => closed