View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
14337 | Bug reports | Expression Manager | public | 2018-12-11 15:31 | 2019-10-14 16:30 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | high | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.15.x | ||||
Fixed in Version | 3.17.x | ||||
Summary | 14337: Broken numeric interpretation of answer codes | ||||
Description | When comparing 2 question with numeric code : comparaison is done in alphanumeric in JS, and in numeric in PHP | ||||
Steps To Reproduce | Import included survey and test | ||||
Additional Information | With Q00 at 5 and Q01 at 20 : we can't go at next step : Mandatory question are hidden via javascript | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 3.15.5 github | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | ff | ||||
Database type & version | not relevant ? | ||||
Server OS (if known) | not relevant ? | ||||
Webserver software & version (if known) | not relevant ? | ||||
PHP Version | not relevant ? | ||||
related to | 07805 | closed | DenisChenu | Comparaison String and Numeric is different in same page and other page |
related to | 08324 | closed | DenisChenu | Broken numeric interpretation of answer codes. |
Currently a lot of EM system is broken due to your update of numeric system … |
|
Sh … an older issue : 5+"" > 15+"" is compared as string in JS but as number in PHP. Must fix this one too (and add a test) |
|
Proposition : with 20 (Q1) and 5 (Q2) for Answer code
Add this to a tester |
|
https://github.com/LimeSurvey/LimeSurvey/commit/63765d277d6293108006bb16bd9b96a834109971 |
|
Still an issue … 3A on Q00 and 5 on Q01 return true for Q00+"" lt Q01+"" in JS because both are forced to string … |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=29025 |
|
LimeSurvey: master 63765d27 2019-06-11 21:07 Committer: GitHub Details Diff |
Fixed issue 14337: Comparaison String and Numeric is different in same page and other page Dev: Fixed issue 08324: Broken numeric interpretation of answer codes. Dev: If can be number : return a number in JS Dev: JS with number+"" do a compare by string : then same for PHP Dev: adding a Survey test |
Affected Issues 08324, 14337 |
|
mod - application/helpers/expressions/em_core_helper.php | Diff File | ||
mod - assets/scripts/expressions/em_javascript.js | Diff File | ||
add - tests/data/surveys/limesurvey_survey_checkCompareTestSurvey.lss | Diff File | ||
add - tests/helpers/JsPhpCompareTest.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-12-11 15:31 | DenisChenu | New Issue | |
2018-12-11 15:31 | DenisChenu | File Added: limesurvey_survey_CompareNumericCode.lss | |
2018-12-11 15:32 | DenisChenu | Relationship added | related to 07805 |
2018-12-11 15:32 | DenisChenu | Issue Monitored: Mazi | |
2018-12-11 15:33 |
|
Priority | none => high |
2018-12-11 15:34 | DenisChenu | Relationship added | related to 08324 |
2019-01-10 16:23 |
|
Assigned To | => markusfluer |
2019-01-10 16:23 |
|
Status | new => assigned |
2019-01-25 10:07 | DenisChenu | Note Added: 50303 | |
2019-04-02 20:14 | jelo | Issue Monitored: jelo | |
2019-04-25 19:27 | DenisChenu | Relationship added | related to 14817 |
2019-04-26 09:07 | DenisChenu | Relationship deleted | related to 14817 |
2019-06-05 07:55 | DenisChenu | Note Added: 52300 | |
2019-06-06 08:57 | DenisChenu | Assigned To | markusfluer => DenisChenu |
2019-06-06 08:58 | DenisChenu | Note Added: 52311 | |
2019-06-07 16:03 | DenisChenu | File Added: limesurvey_survey_checkCompareTestSurvey.lss | |
2019-06-07 16:03 | DenisChenu | Note Added: 52331 | |
2019-06-11 19:51 | DenisChenu | Status | assigned => resolved |
2019-06-11 19:51 | DenisChenu | Resolution | open => fixed |
2019-06-11 19:51 | DenisChenu | Fixed in Version | => 3.17.x |
2019-06-11 19:51 | DenisChenu | Note Added: 52346 | |
2019-06-11 19:59 | DenisChenu | Note Added: 52347 | |
2019-06-13 11:36 | DenisChenu | Summary | Comparaison String and Numeric is different in same page and other page => Broken numeric interpretation of answer codes |
2019-06-28 12:27 | DenisChenu | Changeset attached | => LimeSurvey master 63765d27 |
2019-06-28 12:27 | DenisChenu | Note Added: 52634 | |
2019-10-14 16:30 | DenisChenu | Status | resolved => closed |