View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08032Bug reportsExpression Managerpublic2013-10-07 16:55
ReporterARamirez Assigned Toc_schmitz  
PriorityhighSeveritypartial_block 
Status closedResolutionunable to reproduce 
Product Version2.00+ 
Summary08032: Equation results are errased when editing survey resulting in data loss
Description

If we have a survey with equations that are sum of the previous questions, and we return with same token to edit a survey entry, the equation value is saved as zero, no matter what options are selected, so the data of the equation is lost.

Steps To Reproduce

Steps to reproduce:

I. Make a survey with three questions:
Q1) Do you like candys? A)5 B)0
Q2) Do you like sodas? A)5 B)0
Q3) SUM Q1.value+Q2.value

II. Fill a survey answering "A" option for the two questions, the result of Q3 will be recorded as 10

III. Open again the survey entry from the client side with same token, the answers are still there (A,A), and wether you change them, select them again or do nothing, after saving the survey the result of Q3 is set to zero.

Additional Information

Tried in LS Versión 2.00+ Build 130708, happens with Explorer, Chrome and Firefox.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)130708
I will donate to the project if issue is resolvedYes
BrowserExplorer, Chrome and Firefox.
Database type & version5.1.70-cll
Server OS (if known)linux x86_64
Webserver software & version (if known)Apache 2.2.23
PHP VersionPHP 5.2.17
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2013-08-22 20:03

developer   ~26051

Can you trye sum(Q1.value,Q2.value)

<q>Note, for consistency between JavaScript and PHP, the plus operator (+) does addition if both operands are numeric, but does concatenation if both parts are non-numeric strings. However, we recommend using the join() function for concatenation, as that makes your intent more clear, and avoids unexpected results if you were expecting strings but got numbers instead (or vice versa). </q>
http://manual.limesurvey.org/wiki/Expression_Manager#Syntax

c_schmitz

c_schmitz

2013-09-13 10:51

administrator   ~26216

Please attach a small 3 question sample survey demonstrating the problem. Thank you.

c_schmitz

c_schmitz

2013-09-27 23:34

administrator   ~26409

Feedback please?

c_schmitz

c_schmitz

2013-10-07 16:55

administrator   ~26599

Closed due to missing feedback.

Issue History

Date Modified Username Field Change
2013-07-22 18:58 ARamirez New Issue
2013-08-22 20:03 DenisChenu Note Added: 26051
2013-09-13 10:51 c_schmitz Note Added: 26216
2013-09-13 10:51 c_schmitz Assigned To => c_schmitz
2013-09-13 10:51 c_schmitz Status new => feedback
2013-09-27 23:34 c_schmitz Note Added: 26409
2013-10-07 16:55 c_schmitz Note Added: 26599
2013-10-07 16:55 c_schmitz Status feedback => closed
2013-10-07 16:55 c_schmitz Resolution open => unable to reproduce