View Issue Details

This bug affects 1 person(s).
 14
IDProjectCategoryView StatusLast Update
11830Bug reportsExpression Managerpublic2017-01-06 12:15
Reportersergiovc Assigned Tomarkusfluer 
PrioritynoneSeverityminor 
Status closedResolutionduplicate 
Product Version2.54 
Fixed in Version2.56.x 
Summary11830: I see the danger text red color but not turns to green color. But I can step
Description

Hi. I am using a short free text and using this regular expression as validator: /^[0-9]{8}$/
So, when I enter a group of numbers as 01234567 (8 digits) I see the danger text red color but not turns to green color. But I can step.
Maybe this is a bug or please tell me what shall I do to fix this, so when I enter a number beginning with 0 and complete 8 digits (for example: 07654321), this red color turns green color.

TIA.

TagsNo tags attached.
Attached Files
Pic_01.jpg (22,240 bytes)   
Pic_01.jpg (22,240 bytes)   
Pic_02.jpg (19,249 bytes)   
Pic_02.jpg (19,249 bytes)   
Pic_03.jpg (22,751 bytes)   
Pic_03.jpg (22,751 bytes)   
Bug heat14
Complete LimeSurvey version number (& build)Versión 2.51.1+160901
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySql - 5.6.30
Server OS (if known)Linux
Webserver software & version (if known)Perl Version 5.10.1 (I am not sure)
PHP Version5.6.27

Relationships

duplicate of 11894 closedmarkusfluer Regex validation not working as expected when leading zeros are present in short text questions 

Users monitoring this issue

DenisChenu, sergiovc

Activities

ollehar

ollehar

2016-10-25 18:35

administrator   ~41538

Could you please update to the latest LS version and try again?

sergiovc

sergiovc

2016-10-25 19:48

reporter   ~41539

Hi I am using Versión 2.55+161021 of LS. Today is 2016/10/25.

I created a free text (one line) question to enter a number of 8 characters and I used this regular expression: /^[0-9]{8}$/
When I enter a number as 01234567 (8 characters) starting with 0 (zero) I got a red message. See Pic_01
When I enter a number as 012345678 (9 characters) starting with 0 (zero) I got a green message. See Pic_02
When I enter a number as 0123456789 (10 characters) starting with 0 (zero) I got a red message. See Pic_03

So, in this case the LS does not recognize the 0 (zero) as a character.
I think this is a bug.

TIA.

LouisGac

LouisGac

2016-11-14 15:50

developer   ~41894

could you please attach a lss or lsq file?

DenisChenu

DenisChenu

2016-11-14 16:45

developer   ~41911

Last edited: 2016-11-14 16:46

@LouisGac : https://bugs.limesurvey.org/view.php?id=11894#c41867

olle and me already fixed it before but markus remove the test to return the real value if it was not a numeric value.

Related to Decimal function here (who broke 'non . radix' survey )

c_schmitz

c_schmitz

2017-01-06 12:15

administrator   ~42659

New version released.

Issue History

Date Modified Username Field Change
2016-10-25 01:08 sergiovc New Issue
2016-10-25 18:15 sergiovc Issue Monitored: sergiovc
2016-10-25 18:35 ollehar Note Added: 41538
2016-10-25 19:45 sergiovc File Added: Pic_01.jpg
2016-10-25 19:45 sergiovc File Added: Pic_02.jpg
2016-10-25 19:46 sergiovc File Added: Pic_03.jpg
2016-10-25 19:48 sergiovc Note Added: 41539
2016-10-26 12:21 ollehar Assigned To => ollehar
2016-10-26 12:21 ollehar Status new => assigned
2016-11-08 19:38 DenisChenu Issue Monitored: DenisChenu
2016-11-14 15:50 LouisGac Note Added: 41894
2016-11-14 15:50 LouisGac Assigned To ollehar => LouisGac
2016-11-14 16:44 DenisChenu Relationship added duplicate of 11894
2016-11-14 16:45 DenisChenu Note Added: 41911
2016-11-14 16:46 DenisChenu Note Edited: 41911
2016-11-14 16:58 LouisGac Assigned To LouisGac => markusfluer
2016-12-05 17:16 markusfluer Status assigned => resolved
2016-12-05 17:16 markusfluer Resolution open => duplicate
2016-12-05 17:16 markusfluer Fixed in Version => 2.56.x
2017-01-06 12:15 c_schmitz Note Added: 42659
2017-01-06 12:15 c_schmitz Status resolved => closed
2021-08-02 19:34 guest Bug heat 10 => 14