View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
10189Bug reportsSurvey editingpublic2016-02-23 21:28
Reporterervit Assigned Toollehar  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Target Version2.50.xFixed in Version2.50.x 
Summary10189: Enabling "Thousands separator" in "numerical input" questions results in an error and data loss
Description

Create a question of the type "Numerical input" with 'thousands separator' and 'integers only' attributes both enabled. Place the question in a group and have a second group after it. Test the survey: enter a number of 1000 or more (it will be masked by the template into 1,000.00) and click 'Next' to move to the next question group (questions are grouped by group). I get the error "One or more questions have not been answered in a valid manner. You cannot proceed until these answers are valid".

As soon as I disable "Thousands separator" in question attributes, the error doesn't happen.

If I enable only "Thousands separator" but leave "Integers only" at 'No', then after the error message, the amount is divided by 100 (i.e. if I enter 50,000.00, it is truncated to 500.00). Also, in this scenario, entering a number less than 1000 but with zeroes at the end (such as 500 or 500.50, for example) allows navigating to the next page, but returning back still divides the number by 10 or 100 every single time, until there are no more zeroes to eliminate. In other words, 500.00 will be reduced to 5.00 and then to 0.05 and 500.50 will be reduced to 50.05, but 999.99 will remain 999.99.

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

related to 09876 closedollehar Different bogus with thousand seperator 
related to 10211 closedollehar Thousands separator - numeric input and multiple numeric input in the same group 

Users monitoring this issue

There are no users monitoring this issue.

Activities

ervit

ervit

2015-12-31 11:12

reporter   ~34127

Last edited: 2015-12-31 11:12

The error with thousands separator doesn't appear when pressing the "Previous" button in the survey, but the decimal mess does.

riqcles

riqcles

2016-01-05 17:07

reporter   ~34148

i confirm the same scenario

riqcles

riqcles

2016-01-05 19:27

reporter   ~34152

Hello and happy new year.

I went from 150629 the last version dated: 151 205 successfully ..
short because users of some questionnaires were reassembled errors when entering numerical values.

I looked in detail the type of question that is the problem:

  1. Digital input
  2. Multiple digital input.

The bugs are critical about the content of the data: the application is not planted, but the content of the answers is completely distorted.
Existing bugs treat problems:


  1. numerical Input: bugs.limesurvey.org/view.php id = 10189?

    We created a basic questionnaire (2 groups each with 2 questions: numerical input and multi numerical input )
    choose for the numerical input:
    Only integer -> yes
    That's all.
    We made the questionnaire and a value is entered in thousands (eg 200 000).
    It is found that:
    thousands separator is automatically (though we did not ask).
    The entry box appears well 200,000
    We go to the next group and back to the previous :
    The input box appears only 200. This value is the one that is saved in the database and that can be exported to Excel.

We redo the same operation, but enter 2 million.
We go to the next group, there was a crash which indicates that the data could not be saved.
His answers to be deleted and we are told that our session expired.
If you look in foreclosures answers, we will see an incomplete response with the value 200.

Variation: add the thousands separator in the setting of the question ---> it becomes very attractive to the eye, but madness to explain to users.

Option 2: choose as decimal separator point not comma : what it looks after with thousands separator?


  1. Multiple digital input:
    bugs.limesurvey.org/view.php?id=9648
    bugs.limesurvey.org/view.php?id=9508
    www.limesurvey.org/en/forum/can-i-do-thi...eric-inputs?start=45

    We return to the same basic survey
    Thousands separator is indicated in the parameter.
    That's all.
    We made the questionnaire and set 20 000 for example.
    We go to the next group (the stored value is 200) and back to the previous :
    The entry box displays 2.00
    If we go back to the next group, the value that will be stored in the 2 answers ( and full zero back).

The display will be the following answers to the entered value of 20,000: 200.0000000000.
This will also be the value to be exported in csv or excel file.

Variation: enter 200 000 as the value -> was a crash which indicates that the data could not be saved.
His answers to be deleted and we are told that our session expired.

@Denis: Currently it is a feature, but for me it's more of bug - crash. You can change?

DenisChenu

DenisChenu

2016-01-06 17:36

developer   ~34158

@ervit : i move it to "bug" not feature request .

Can you confirm it's a duplicate than https://bugs.limesurvey.org/view.php?id=9876 ?

DenisChenu

DenisChenu

2016-01-06 17:38

developer   ~34159

The bug is "thousand separator" + "," for decimal : all is broken .

ervit

ervit

2016-01-07 09:15

reporter   ~34163

@Denis https://bugs.limesurvey.org/view.php?id=9876 seems to be about other issues, although it can be related to the same input mask implementation.

PS: i was sure i was reporting a bug and not a feature request... must have overlooked

ollehar

ollehar

2016-02-22 14:49

administrator   ~35536

FYI: This will be fixed in 2.5, not 2.06.

ollehar

ollehar

2016-02-22 18:02

administrator   ~35545

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

ollehar

ollehar

2016-02-23 16:15

administrator   ~35602

The first issue is resolved, the second (going back and forth) is not.

ollehar

ollehar

2016-02-23 16:45

administrator   ~35603

Fixed in 2.5. Please update at next release and confirm.

c_schmitz

c_schmitz

2016-02-23 21:28

administrator   ~35616

Version 2.50+ Build 160223 released

Related Changesets

LimeSurvey: master 83beb123

2016-02-22 17:01:13

ollehar

Details Diff
Fixed issue 10189: Enabling "Thousands separator" in "numerical input" questions results in an error and data loss Affected Issues
10189
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2015-12-30 15:28 ervit New Issue
2015-12-30 15:28 ervit File Added: limesurvey_survey_584696.lss
2015-12-31 11:12 ervit Note Added: 34127
2015-12-31 11:12 ervit Note Edited: 34127
2016-01-05 17:07 riqcles Note Added: 34148
2016-01-05 19:27 riqcles Note Added: 34152
2016-01-06 15:18 DenisChenu Project Feature requests => Bug reports
2016-01-06 17:35 DenisChenu Relationship added related to 09876
2016-01-06 17:36 DenisChenu Note Added: 34158
2016-01-06 17:37 DenisChenu Severity feature => minor
2016-01-06 17:37 DenisChenu Product Version => 2.06+
2016-01-06 17:38 DenisChenu Note Added: 34159
2016-01-07 09:15 ervit Note Added: 34163
2016-01-08 17:48 DenisChenu Relationship added related to 10211
2016-02-22 14:49 ollehar Note Added: 35536
2016-02-22 14:49 ollehar Assigned To => ollehar
2016-02-22 14:49 ollehar Status new => assigned
2016-02-22 14:50 ollehar Target Version => 2.5
2016-02-22 18:02 ollehar Changeset attached => LimeSurvey master 83beb123
2016-02-22 18:02 ollehar Note Added: 35545
2016-02-22 18:02 ollehar Resolution open => fixed
2016-02-23 16:15 ollehar Note Added: 35602
2016-02-23 16:45 ollehar Note Added: 35603
2016-02-23 16:45 ollehar Status assigned => resolved
2016-02-23 16:45 ollehar Fixed in Version => 2.5
2016-02-23 21:28 c_schmitz Note Added: 35616
2016-02-23 21:28 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing