View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08673Bug reportsExpression Managerpublic2014-06-18 16:40
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.06+ 
Summary08673: Equation attribute 'numeric' do nothing
Description

If you set a "numeric" attribute to an equation question type : it's do nothing.

Steps To Reproduce

Import LSS file, activate and test

Additional Information

2.00 have same issue.

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)140206
I will donate to the project if issue is resolvedNo
BrowserFF
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Relationships

related to 08885 new Feature requests Validate 'mandatory' equation 

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-02-21 11:51

administrator   ~28858

I think there is a misunderstanding about the reason for this attribute.

The attribute means that the result of the equation is given back as a logical number, if possible.

So if your equation result is a string '52' and you want to use it in a followup-equation the attribute enforces it as 52 (numeric). So in your followup-equation you can just write {q1+12}

DenisChenu

DenisChenu

2014-02-21 12:16

developer   ~28860

Last edited: 2014-02-21 12:19

OK,

Then if you do :
EQ2 : {EQ2} : you must have '' (or NaN according to doc) in any condition ?

But broken here (see attached survey)

  • OK i same group
  • Different in another group

PS: documentation:
<quote>Equation: Setting this option to "Yes" will force equation results to be converted to a numeric value. If the equation result is not a number (and not blank), the equation will return NaN. </quote>
http://manual.limesurvey.org/Question_type_-_Equation#Numbers_only_.28numbers_only.29

c_schmitz

c_schmitz

2014-03-11 16:33

administrator   ~29191

Denis, can you take this one, then? The documentation should be right.

DenisChenu

DenisChenu

2014-03-11 16:47

developer   ~29193

Yes sure

DenisChenu

DenisChenu

2014-06-04 17:20

developer   ~30048

Fix committed to 2.06 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=14236

c_schmitz

c_schmitz

2014-06-18 16:40

administrator   ~30174

LimeSurvey 2.05+ Build 140618 released.

Related Changesets

LimeSurvey: 2.06 7db058ac

2014-06-04 15:19:46

DenisChenu

Details Diff
Fixed issue 08673: Use Equation attribute 'numeric'
Dev: Same behaviour and same page and next page
Dev: Allow using tag in Equation (use static replacement)
Affected Issues
08673
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2014-02-06 15:30 DenisChenu New Issue
2014-02-06 15:30 DenisChenu File Added: limesurvey_survey_BrokenEquationNumeric.lss
2014-02-21 11:51 c_schmitz Note Added: 28858
2014-02-21 11:51 c_schmitz Status new => resolved
2014-02-21 11:51 c_schmitz Resolution open => no change required
2014-02-21 11:51 c_schmitz Assigned To => c_schmitz
2014-02-21 12:16 DenisChenu Note Added: 28860
2014-02-21 12:17 DenisChenu File Added: limesurvey_survey_498686.lss
2014-02-21 12:17 DenisChenu Status resolved => feedback
2014-02-21 12:17 DenisChenu Resolution no change required => reopened
2014-02-21 12:18 DenisChenu Note Edited: 28860
2014-02-21 12:19 DenisChenu Note Edited: 28860
2014-03-02 11:39 c_schmitz Status feedback => assigned
2014-03-11 16:33 c_schmitz Note Added: 29191
2014-03-11 16:33 c_schmitz Assigned To c_schmitz => DenisChenu
2014-03-11 16:47 DenisChenu Note Added: 29193
2014-03-21 09:12 DenisChenu Relationship added related to 08885
2014-06-04 17:20 DenisChenu Changeset attached => LimeSurvey 2.06 7db058ac
2014-06-04 17:20 DenisChenu Note Added: 30048
2014-06-04 17:20 DenisChenu Status assigned => resolved
2014-06-04 17:20 DenisChenu Fixed in Version => 2.06+
2014-06-04 17:20 DenisChenu Resolution reopened => fixed
2014-06-18 16:40 c_schmitz Note Added: 30174
2014-06-18 16:40 c_schmitz Status resolved => closed