View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
08385Bug reportsTheme editorpublic2013-11-25 15:39
Reporterphilg Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Fixed in Version2.05+ 
Summary08385: right supression of '0' in print value of numeric field
Description

hi,
i'm working with last release version of limesurvey ( 2.05 RC6 ).
If i put a numeric value in a numeric field and this value is terminated by 0 ( for example 120 ); the answer is great record but if i refresh the survey, the value wich is print in the field is 12.
I have make a correction of this problem by editing the file application/helpers/qanda_helper.php and replace the line 3411
$fValue = rtrim(trim($fValue,"0"),".");
by
$fValue = rtrim(trim($fValue),".");

TagsNo tags attached.
Attached Files
Bug heat10
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Relationships

has duplicate 08400 closedDenisChenu Numerical input strips zeros 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2013-11-19 12:53

developer   ~27225

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

c_schmitz

c_schmitz

2013-11-25 15:39

administrator   ~27373

2.05RC7 released.

Related Changesets

LimeSurvey: 2.05 cb6f8c8b

2013-11-19 11:53:08

DenisChenu

Details Diff
Fixed issue 08385: right supression of '0' in print value of numeric field
Dev: did we really need to fix 0 value left and remove last dot ?
Dev: in 2.00 :$fValue=rtrim(rtrim($fValue,"0"),".");
Affected Issues
08385
mod - application/helpers/qanda_helper.php Diff File

Issue History

Date Modified Username Field Change
2013-11-19 11:31 philg New Issue
2013-11-19 11:31 philg File Added: limesurvey_survey_545656.lss
2013-11-19 12:15 Mazi Assigned To => DenisChenu
2013-11-19 12:15 Mazi Status new => assigned
2013-11-19 12:29 DenisChenu Project Feature requests => Bug reports
2013-11-19 12:53 DenisChenu Changeset attached => LimeSurvey 2.05 cb6f8c8b
2013-11-19 12:53 DenisChenu Note Added: 27225
2013-11-19 12:53 DenisChenu Resolution open => fixed
2013-11-19 12:55 DenisChenu Severity feature => minor
2013-11-19 12:55 DenisChenu Status assigned => resolved
2013-11-19 12:55 DenisChenu Fixed in Version => 2.05+
2013-11-22 11:25 c_schmitz Relationship added parent of 08400
2013-11-22 11:54 DenisChenu Relationship replaced has duplicate 08400
2013-11-25 15:39 c_schmitz Note Added: 27373
2013-11-25 15:39 c_schmitz Status resolved => closed
2015-12-11 14:40 c_schmitz Category Templates => Theme editor