View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
06980Bug reportsSurvey takingpublic2012-12-04 13:16
Reporterjussibus Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary06980: Numerical input strips zeros
Description

I have a numerical input field in a survey. If I input, for example, '1000' to the field and submit the survey, the db table has '1000.0000000000' but the 'Responses and statistics' in the LimeSurvey admin shows only '1'. I noticed that the the trailing zeros are always stripped when viewing the responses in 'Responses and statistics'.

Steps To Reproduce

1) Create a survey with numerical input.
2) Take the survey and input, for example, 1000 in the numerical input field.
3) Check the responses in "Responses and statistics"
4) Notice "1" in the response

TagsNo tags attached.
Attached Files
numerical_input.png (18,262 bytes)   
numerical_input.png (18,262 bytes)   
numerical_input_response.png (36,707 bytes)   
numerical_input_response.png (36,707 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)121127
I will donate to the project if issue is resolvedNo
BrowserSafari 6.0.2
Database type & version164
Server OS (if known)OSX
Webserver software & version (if known)Apache/2.0.64
PHP Version5.3.5

Users monitoring this issue

There are no users monitoring this issue.

Activities

jussibus

jussibus

2012-11-29 09:35

reporter   ~22667

Sorry, the first lss file uploaded was wrong. Use the next one (numerical_input_issue_correct.lss)!

DenisChenu

DenisChenu

2012-11-29 13:42

developer   ~22697

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

DenisChenu

DenisChenu

2012-11-29 13:47

developer   ~22700

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

mdekker

mdekker

2012-11-29 16:12

reporter   ~22712

Last edited: 2012-11-29 16:13

Just to make sure we don't forget to fix before release... see my comment on git
(I had error on show response screen)

DenisChenu

DenisChenu

2012-11-29 16:23

developer   ~22713

github are on error actually.

Review it now, thank you

DenisChenu

DenisChenu

2012-11-29 18:09

developer   ~22714

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

DenisChenu

DenisChenu

2012-11-29 18:12

developer   ~22715

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

c_schmitz

c_schmitz

2012-12-04 13:16

administrator   ~22863

LimeSurvey 2.0+ build 121204 released.

Related Changesets

LimeSurvey: master 2b839f97

2012-11-29 12:41:03

DenisChenu

Details Diff
Fixed issue 06980: Numerical input strips zeros
Dev: Maybe can use float_val, but not sure if DECIMAL is a float val
Affected Issues
06980
mod - application/helpers/common_helper.php Diff File
mod - application/helpers/qanda_helper.php Diff File

LimeSurvey: 2.1 cd7b608c

2012-11-29 12:45:06

DenisChenu

Details Diff
Fixed issue 06980: Numerical input strips zeros
Dev: Maybe can use float_val, but not sure if DECIMAL is a float val
Affected Issues
06980
mod - application/modules/NumericalQuestion.php Diff File

LimeSurvey: master 2d9fb43b

2012-11-29 17:07:29

DenisChenu

Details Diff
Dev: reFixed 06980: Numerical input strips zeros Affected Issues
06980
mod - application/helpers/common_helper.php Diff File
mod - application/helpers/qanda_helper.php Diff File

LimeSurvey: 2.1 59aca5f4

2012-11-29 17:10:10

DenisChenu

Details Diff
Dev: reFixed 06980: Numerical input strips zeros Affected Issues
06980
mod - application/modules/NumericalQuestion.php Diff File

Issue History

Date Modified Username Field Change
2012-11-29 09:16 jussibus New Issue
2012-11-29 09:16 jussibus File Added: numerical_input_issue.lss
2012-11-29 09:34 jussibus File Added: numerical_input_issue_correct.lss
2012-11-29 09:35 jussibus Note Added: 22667
2012-11-29 09:36 jussibus File Added: numerical_input.png
2012-11-29 09:36 jussibus File Added: numerical_input_response.png
2012-11-29 13:02 DenisChenu Assigned To => DenisChenu
2012-11-29 13:02 DenisChenu Status new => assigned
2012-11-29 13:42 DenisChenu Changeset attached => LimeSurvey master 2b839f97
2012-11-29 13:42 DenisChenu Note Added: 22697
2012-11-29 13:42 DenisChenu Resolution open => fixed
2012-11-29 13:47 DenisChenu Changeset attached => LimeSurvey 2.1 cd7b608c
2012-11-29 13:47 DenisChenu Note Added: 22700
2012-11-29 13:47 DenisChenu Status assigned => resolved
2012-11-29 13:47 DenisChenu Fixed in Version => 2.00+
2012-11-29 16:12 mdekker Note Added: 22712
2012-11-29 16:12 mdekker Status resolved => feedback
2012-11-29 16:12 mdekker Resolution fixed => reopened
2012-11-29 16:13 mdekker Note Edited: 22712
2012-11-29 16:23 DenisChenu Note Added: 22713
2012-11-29 18:09 DenisChenu Changeset attached => LimeSurvey master 2d9fb43b
2012-11-29 18:09 DenisChenu Note Added: 22714
2012-11-29 18:12 DenisChenu Changeset attached => LimeSurvey 2.1 59aca5f4
2012-11-29 18:12 DenisChenu Note Added: 22715
2012-11-29 18:34 DenisChenu Status feedback => resolved
2012-11-29 18:34 DenisChenu Resolution reopened => fixed
2012-12-04 13:16 c_schmitz Note Added: 22863
2012-12-04 13:16 c_schmitz Status resolved => closed