View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
04671 | Bug reports | Conditions | public | 2010-10-12 18:39 | 2010-10-19 21:12 |
Reporter | Assigned To | DenisChenu | |||
Priority | low | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.90+ | ||||
Fixed in Version | 1.90+ | ||||
Summary | 04671: Numeric question, force 1 decimal validation fails due to rounding | ||||
Description | 22.0 becomes 22 and the validation fails | ||||
Steps To Reproduce |
| ||||
Additional Information | Versie 1.90+ Build | ||||
Tags | conditions, question, regular expressions | ||||
Attached Files | |||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 9130 | ||||
I will donate to the project if issue is resolved | |||||
Browser | |||||
Database type & version | Mysql | ||||
Server OS (if known) | Ubuntu 4 | ||||
Webserver software & version (if known) | Apache | ||||
PHP Version | 5.3.2 | ||||
Please attach a simple survey we can use for testing. |
|
Some more debug information: |
|
Hello, In your survey you use a numerical input. You can use text-short with 'numeric only' attribute. (i test it, and it work like you want) If you want to use a numerical input, you have to accept 22 (without the dot) in your regexp. :) |
|
well I symp with the OP because if you are knitpicking the value entered is 2.0 and so the regex should validate it. Question is if the effort is worth it, so the source where the 2.0 is straightened to 2 should be checked. |
|
Shnoulle, would you like to have a look at it? |
|
If i understand right, You want regexp is OK for 2.0 in numerical type question ? Numerical input : filter the input with [-0123456789.] (like js function) , test regexp and after floatval() the value to be integrated in sql. I take it, but i remove urgent cause there are other possibility :) |
|
yep |
|
Fixed in 9256 Replace core/filter/sanitize_float function. |
|
Oups using a PHP5.2 function revert the commit and find a good solution. It seems if : |
|
Resolved in 9259. With a goodest solution. |
|
Released in 1.90 plus release. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-10-12 18:39 |
|
New Issue | |
2010-10-12 18:39 |
|
Status | new => assigned |
2010-10-12 18:39 |
|
Assigned To | => lemeur |
2010-10-14 12:00 | Mazi | Note Added: 13168 | |
2010-10-14 12:00 | Mazi | Status | assigned => feedback |
2010-10-14 12:29 |
|
Note Added: 13169 | |
2010-10-14 12:29 |
|
Status | feedback => assigned |
2010-10-14 12:29 |
|
File Added: limesurvey_survey_83383.lss | |
2010-10-14 12:30 |
|
Issue Monitored: user10091 | |
2010-10-14 17:05 |
|
Tag Attached: conditions | |
2010-10-14 17:05 |
|
Tag Attached: question | |
2010-10-14 17:05 |
|
Tag Attached: regular expressions | |
2010-10-14 19:39 | DenisChenu | Note Added: 13188 | |
2010-10-14 19:44 | Mazi | Status | assigned => feedback |
2010-10-14 20:22 | DenisChenu | Issue Monitored: DenisChenu | |
2010-10-14 20:38 | c_schmitz | Note Added: 13189 | |
2010-10-14 20:38 | c_schmitz | Note Added: 13190 | |
2010-10-15 08:57 | DenisChenu | Note Added: 13198 | |
2010-10-15 08:58 | DenisChenu | Assigned To | lemeur => DenisChenu |
2010-10-15 08:58 | DenisChenu | Status | feedback => assigned |
2010-10-15 08:58 | DenisChenu | Status | assigned => confirmed |
2010-10-15 08:59 | DenisChenu | Note Edited: 13198 | |
2010-10-15 08:59 | DenisChenu | Priority | urgent => low |
2010-10-15 08:59 | DenisChenu | Severity | partial_block => minor |
2010-10-15 10:14 | c_schmitz | Note Added: 13199 | |
2010-10-15 10:14 | c_schmitz | Status | confirmed => assigned |
2010-10-16 17:15 | DenisChenu | Note Added: 13213 | |
2010-10-16 17:15 | DenisChenu | Status | assigned => resolved |
2010-10-16 17:15 | DenisChenu | Fixed in Version | => 1.90+ |
2010-10-16 17:15 | DenisChenu | Resolution | open => fixed |
2010-10-16 20:29 | DenisChenu | Status | resolved => assigned |
2010-10-16 20:29 | DenisChenu | Note Added: 13214 | |
2010-10-16 20:46 | DenisChenu | Note Edited: 13214 | |
2010-10-16 21:28 | DenisChenu | Note Added: 13216 | |
2010-10-16 21:28 | DenisChenu | Status | assigned => resolved |
2010-10-19 21:12 | c_schmitz | Note Added: 13266 | |
2010-10-19 21:12 | c_schmitz | Status | resolved => closed |
2021-08-03 18:52 | guest | Bug heat | 8 => 10 |