View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
11740Bug reportsSurvey takingpublic2016-11-11 13:18
ReporterDenisChenu Assigned ToDenisChenu  
PrioritylowSeverityminor 
Status closedResolutionfixed 
Product Version2.52.x 
Fixed in Version2.55.x 
Summary11740: Decimal throwerreor with negative value
Description

Numeri question type : decimal send error when entering a negative value

====

Decimal function throw error on numeric question type when using
'bFixNumAuto'=>0,
'bNumRealValue'=>1,

in config

Steps To Reproduce

Enter - in a numeric question type

====

Set
'config'=>array(
'debug'=>2,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
// Update default LimeSurvey config here
'bFixNumAuto'=>0,
'bNumRealValue'=>1,
)

in your config.

Import included survey, show console and test enter abc in an input.

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

Relationships

related to 11731 closedollehar JavaScript error when the field has a validation regexp, and the input starts with a plus sign 

Users monitoring this issue

ollehar

Activities

c_schmitz

c_schmitz

2016-10-04 13:19

administrator   ~41092

Why do we have these options at all. They make no real sense, even to a proficient user.

DenisChenu

DenisChenu

2016-10-04 14:17

developer   ~41102

Last edited: 2016-10-04 14:19

There are a bug report fixed with this options : https://bugs.limesurvey.org/view.php?id=8247 .

In fact : "since a survey engine should not autocorrect." surely true in some situation.

DenisChenu

DenisChenu

2016-10-14 12:37

developer   ~41348

Send Error too with - : update priority, no ?

Question : why decimal was added ?

DenisChenu

DenisChenu

2016-10-15 11:02

developer   ~41366

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

DenisChenu

DenisChenu

2016-10-15 11:06

developer   ~41367

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

DenisChenu

DenisChenu

2016-10-15 11:07

developer   ~41368

Thank you @olle :)

c_schmitz

c_schmitz

2016-11-11 13:18

administrator   ~41861

Version 2.55.3 released

Related Changesets

LimeSurvey: answers_html 33a1dd42

2016-10-15 11:00:42

DenisChenu

Details Diff
Fixed issue 11740: Decimal throwerreor with negative value
Dev: Put a try everywhere using Decimal(value), unsure we need it everywhere
Affected Issues
11740
mod - scripts/array-totalsum.js Diff File
mod - scripts/expressions/em_javascript.js Diff File

LimeSurvey: master 56dc3fe9

2016-10-15 11:06:40

DenisChenu

Details Diff
Fixed issue 11740: Decimal throwerreor with negative value
Dev: Put a try everywhere using Decimal(value), unsure we need it everywhere, but don't seem to be an issue
Dev: Didn't update anything else
Affected Issues
11740
mod - scripts/array-totalsum.js Diff File
mod - scripts/expressions/em_javascript.js Diff File

Issue History

Date Modified Username Field Change
2016-10-04 09:49 DenisChenu New Issue
2016-10-04 09:50 DenisChenu File Added: limesurvey_survey_DecimlaFixNumAutoFalse.lss
2016-10-04 09:50 DenisChenu File Added: Capture du 2016-10-04 09-37-19.png
2016-10-04 13:19 c_schmitz Note Added: 41092
2016-10-04 14:17 DenisChenu Note Added: 41102
2016-10-04 14:19 DenisChenu Note Edited: 41102
2016-10-14 12:33 ollehar Priority none => low
2016-10-14 12:37 DenisChenu Note Added: 41348
2016-10-14 12:37 DenisChenu File Added: Capture du 2016-10-14 12-36-46.png
2016-10-14 12:38 DenisChenu Summary Decimal throwerreor with bNumRealValue to 1 => Decimal throwerreor with negative value
2016-10-14 12:38 DenisChenu Description Updated
2016-10-14 12:38 DenisChenu Steps to Reproduce Updated
2016-10-14 15:10 ollehar Issue Monitored: ollehar
2016-10-14 16:39 ollehar Assigned To => DenisChenu
2016-10-14 16:39 ollehar Status new => assigned
2016-10-15 10:50 DenisChenu Relationship added related to 11731
2016-10-15 11:02 DenisChenu Changeset attached => LimeSurvey answers_html 33a1dd42
2016-10-15 11:02 DenisChenu Note Added: 41366
2016-10-15 11:02 DenisChenu Resolution open => fixed
2016-10-15 11:06 DenisChenu Changeset attached => LimeSurvey master 56dc3fe9
2016-10-15 11:06 DenisChenu Note Added: 41367
2016-10-15 11:07 DenisChenu Status assigned => resolved
2016-10-15 11:07 DenisChenu Fixed in Version => 2.55.x
2016-10-15 11:07 DenisChenu Note Added: 41368
2016-11-11 13:18 c_schmitz Note Added: 41861
2016-11-11 13:18 c_schmitz Status resolved => closed
2021-08-02 19:29 guest Bug heat 4 => 6