View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13881 | Bug reports | Expression Manager | public | 2018-07-18 10:11 | 2023-10-31 17:27 |
Reporter | DenisChenu | Assigned To | |||
Priority | none | Severity | minor | ||
Status | new | Resolution | open | ||
Product Version | 3.13.x | ||||
Summary | 13881: EM : Not number question replace . by , (javascript) | ||||
Description | When entering 1.1 in a short text question : if show the value inside same page : 1,1. In another page 1.1 (in french and other , for separator) | ||||
Steps To Reproduce | Import included survey and test I test wth text.NAOK, text.shown | ||||
Additional Information | The biggest issue i think : the value shown is different in js and php. This must be same value shown in php and js. The best solution can be :
2.6lts + 2.73 have same issue To know if value is a number : we have it in
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 3.13.2 github | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | not relevant | ||||
Database type & version | not relevant | ||||
Server OS (if known) | not relevant | ||||
Webserver software & version (if known) | not relevant | ||||
PHP Version | not relevant | ||||
related to | 15060 | closed | DenisChenu | Other option with number only erases decimal comma - with NO warning |
related to | 16878 | assigned | DenisChenu | Numeric question : Error with dot/comma are unclear |
related to | 18527 | closed | ollehar | Can't validate phone number usign Regex if phone number starts with + |
related to | 19212 | new | Fields validated by Regex appear red even though regex is correct |
Another things : using str_replace(",",".",Text.NAOK) didn't work … when EM have it it's . , then need str_replace("."," ",Text.NAOK) to remove the , . No way to see 1.1 … |
|
Issue is here: https://github.com/LimeSurvey/LimeSurvey/commit/49aff574e363cf659e79101b16f59d839427755f Replacement Action is done even if attr.onlynum = 0 This must be done here : https://github.com/LimeSurvey/LimeSurvey/blob/108cf3522890408673977783c9bce8564fdfe189/assets/scripts/expressions/em_javascript.js#L754 |
|
Feel free to give me an lss file later so I can make a unit test. |
|
@ollehar : i can do :) I already have https://bugs.limesurvey.org/view.php?id=15012 and https://bugs.limesurvey.org/view.php?id=14995 to do … but hope i found one day to do it both … |
|
Oups :) think it's the another bug … This one update API (even if it's a broken API) unsure we can do it for 3.X |
|
Shit … more complex than i think … The issue is here : But since there are no related mantis : why this is added is unknow … |
|
OK : EM core to fix … Just … … don't set LEMRadix to , |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-07-18 10:11 | DenisChenu | New Issue | |
2018-07-18 10:11 | DenisChenu | File Added: limesurvey_survey_numberNotNumber.lss | |
2018-07-18 10:12 | DenisChenu | File Added: Capture du 2018-07-18 10-11-36.png | |
2018-07-18 10:12 | DenisChenu | File Added: Capture du 2018-07-18 10-11-45.png | |
2018-07-18 10:22 | DenisChenu | Note Added: 48527 | |
2018-07-18 10:24 | DenisChenu | Additional Information Updated | |
2018-08-01 19:02 | DenisChenu | Assigned To | => markusfluer |
2018-08-01 19:02 | DenisChenu | Status | new => assigned |
2018-08-01 19:05 | DenisChenu | Note Added: 48645 | |
2019-07-24 00:37 | DenisChenu | Relationship added | related to 15060 |
2019-07-24 00:39 | DenisChenu | Assigned To | markusfluer => DenisChenu |
2019-07-24 11:01 | ollehar | Note Added: 52979 | |
2019-07-24 11:13 | DenisChenu | Note Added: 52980 | |
2019-07-24 11:15 | DenisChenu | Note Added: 52981 | |
2020-12-07 17:51 | DenisChenu | Relationship added | related to 16878 |
2020-12-08 11:38 | DenisChenu | Assigned To | DenisChenu => |
2020-12-08 11:38 | DenisChenu | Status | assigned => new |
2020-12-08 11:38 | DenisChenu | Note Added: 60861 | |
2020-12-12 11:06 | DenisChenu | Assigned To | => DenisChenu |
2020-12-12 11:06 | DenisChenu | Status | new => assigned |
2020-12-12 12:35 | DenisChenu | Note Added: 60936 | |
2020-12-12 12:36 | DenisChenu | Assigned To | DenisChenu => |
2020-12-12 12:36 | DenisChenu | Status | assigned => new |
2023-02-09 08:17 | DenisChenu | Relationship added | related to 18527 |
2023-10-31 17:27 | DenisChenu | Relationship added | related to 19212 |