Relationship Graph

Relationship Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08400Bug reportsOtherpublic2013-11-22 11:54
Reporterdidier Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
Product Version2.05 RC 
Target Version2.05+Fixed in Version2.05+ 
Summary08400: Numerical input strips zeros
Description

in qanda_helper.php, found this line (3412):
$fValue = rtrim(trim($fValue,"0"),".");

This cause numerical fields striped when we have zeros at the end.

Removing this line resolve the bug.

Steps To Reproduce

submit a survey with numerical fields, with values like: 100 or 120.00

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)2.05RC6
I will donate to the project if issue is resolvedNo
BrowserAll
Database type & versionMysql 5.1
Server OS (if known)Linux
Webserver software & version (if known)Apache 2.2.16
PHP Version5.3.3

Relationships

duplicate of 08385 closedDenisChenu right supression of '0' in print value of numeric field 

Activities

c_schmitz

c_schmitz

2013-11-22 11:26

administrator   ~27312

So 100 is stripped to 1 ?

DenisChenu

DenisChenu

2013-11-22 11:52

developer   ~27314

Last edited: 2013-11-22 11:53

http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13458

Yes, already corrected

Question : Dev: did we really need to fix 0 value left and remove last dot ?

Issue History

Date Modified Username Field Change
2013-11-22 10:28 didier New Issue
2013-11-22 11:25 c_schmitz Relationship added child of 08385
2013-11-22 11:25 c_schmitz Assigned To => DenisChenu
2013-11-22 11:25 c_schmitz Status new => assigned
2013-11-22 11:26 c_schmitz Note Added: 27312
2013-11-22 11:28 c_schmitz Target Version => 2.05+
2013-11-22 11:52 DenisChenu Note Added: 27314
2013-11-22 11:53 DenisChenu Note Edited: 27314
2013-11-22 11:54 DenisChenu Relationship replaced duplicate of 08385
2013-11-22 11:54 DenisChenu Status assigned => closed
2013-11-22 11:54 DenisChenu Resolution open => duplicate
2013-11-22 11:54 DenisChenu Fixed in Version => 2.05+