View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15598 | Bug reports | Expression Manager | public | 2019-11-20 12:26 | 2020-01-28 17:39 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.20.x | ||||
Target Version | 4.0.x | ||||
Summary | 15598: intval : broken interpretation of string start by integer in JS | ||||
Description | In js intval('150.03_page-section') return an empty string and 150 iun PHP | ||||
Steps To Reproduce | Import included survey : test | ||||
Additional Information | https://locutus.io/php/var/intval/index.html and in php intval("aa") return 0 … not an empty string | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 3.20.2 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | ff | ||||
Database type & version | mariadb | ||||
Server OS (if known) | not relevant ? | ||||
Webserver software & version (if known) | not relevant ? | ||||
PHP Version | php7.2 | ||||
related to | 15513 | closed | DenisChenu | Feature requests | Missing function floatval() in EM |
Shit. |
|
Even with this? https://www.w3resource.com/phpjs/variable/intval.php |
|
phpjs is dead and replaced by locutus :) |
|
And please : if possible less tracker in links ;) w3resource have (at minima) 14 trackers |
|
Another issue
|
|
I always use NoScript. |
|
NoScript and LimeSurvey admin \o/ PS : NoScript is not a no tracker warranty |
|
Nightmare... |
|
No:
|
|
I mean LEMintval(-3.1) == 4 Check with included survey |
|
#$%&^(#$&%^ |
|
:mdr: :ptdr: (you can't understand , it's i really have a big laugh in french pre 2000 forum) |
|
https://github.com/LimeSurvey/LimeSurvey/pull/1367 I don't know if i assign it to you or @ollehar when it's on testing |
|
Can you elaborate on this? How to reproduce.
|
|
|
|
Alternative Test survey with only move next … : see screencast |
|
Good shit, Denis, thank you. |
|
Test failed? I see the exact same end page in your branch as in master branch. |
|
Yes : the PHP are not updated. There are difference between variables in same page and variable in different page ( JS vs PH°. |
|
Mayeb must be
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=29430 |
|
Fixed in Release 4.1.0+200128 |
|
LimeSurvey: master e865cdee 2020-01-22 14:47 Committer: ollehar Details Diff |
Fixed issue 15598: intval : broken interpretation of string start by integer in JS (#1367) Dev: updated expression JS function, inspired by locutus Dev: add Test function compating JS and PHP with different combination |
Affected Issues 15598 |
|
mod - assets/packages/expressions/em_javascript.js | Diff File | ||
add - tests/data/surveys/limesurvey_survey_15598_intval_floatval_jsphp_compare.lss | Diff File | ||
add - tests/functional/frontend/IntvalFloatvalTest.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-11-20 12:26 | DenisChenu | New Issue | |
2019-11-20 12:26 | DenisChenu | File Added: limesurvey_survey_brokenIntVal.lss | |
2019-11-20 12:36 | DenisChenu | Relationship added | related to 15513 |
2019-11-20 14:59 | ollehar | Note Added: 54710 | |
2019-11-20 15:00 | ollehar | Note Added: 54711 | |
2019-11-20 15:10 | DenisChenu | Note Added: 54712 | |
2019-11-20 15:11 | DenisChenu | Note Added: 54713 | |
2019-11-20 15:12 | DenisChenu | File Added: Capture d’écran du 2019-11-20 15-12-06.png | |
2019-11-20 15:12 | DenisChenu | Note Added: 54714 | |
2019-11-20 15:13 | DenisChenu | Note Edited: 54714 | |
2019-11-20 15:16 | DenisChenu | Note Added: 54715 | |
2019-11-20 15:31 | ollehar | Note Added: 54716 | |
2019-11-20 15:35 | DenisChenu | Note Added: 54717 | |
2019-11-20 15:54 | ollehar | Note Added: 54718 | |
2019-11-20 15:55 | ollehar | Note Added: 54719 | |
2019-11-20 15:56 | DenisChenu | File Added: Capture d’écran du 2019-11-20 15-56-20.png | |
2019-11-20 15:56 | DenisChenu | Note Added: 54720 | |
2019-11-20 16:06 | ollehar | Note Added: 54721 | |
2019-11-20 16:16 | DenisChenu | Note Added: 54722 | |
2020-01-13 14:36 | DenisChenu | Assigned To | => DenisChenu |
2020-01-13 14:36 | DenisChenu | Status | new => assigned |
2020-01-13 14:37 | DenisChenu | Target Version | => 4.0.x |
2020-01-21 07:43 | DenisChenu | Assigned To | DenisChenu => cdorin |
2020-01-21 07:43 | DenisChenu | Status | assigned => ready for testing |
2020-01-21 07:43 | DenisChenu | Note Added: 55394 | |
2020-01-21 15:32 | ollehar | Note Added: 55410 | |
2020-01-21 15:42 | DenisChenu | File Added: limesurvey_survey_15598_intval_floatval_jsphp_compare.lss | |
2020-01-21 15:42 | DenisChenu | File Added: Capture d’écran du 2020-01-21 15-41-10.png | |
2020-01-21 15:42 | DenisChenu | File Added: Capture d’écran du 2020-01-21 15-41-19.png | |
2020-01-21 15:42 | DenisChenu | Note Added: 55411 | |
2020-01-21 15:57 | DenisChenu | File Added: limesurvey_survey_redoFloatIntTest.lss | |
2020-01-21 15:57 | DenisChenu | File Added: Peek 21-01-2020 15-55.gif | |
2020-01-21 15:57 | DenisChenu | Note Added: 55412 | |
2020-01-21 16:33 | ollehar | Note Added: 55413 | |
2020-01-21 17:18 | ollehar | File Added: Selection_983.png | |
2020-01-21 17:18 | ollehar | Note Added: 55414 | |
2020-01-21 17:33 | DenisChenu | Note Added: 55415 | |
2020-01-21 17:35 | DenisChenu | Note Added: 55416 | |
2020-01-21 17:35 | DenisChenu | Note Edited: 55416 | |
2020-01-22 13:47 | ollehar | Changeset attached | => LimeSurvey master e865cdee |
2020-01-22 13:47 | DenisChenu | Note Added: 55431 | |
2020-01-22 13:47 | DenisChenu | Assigned To | cdorin => DenisChenu |
2020-01-22 13:47 | DenisChenu | Resolution | open => fixed |
2020-01-22 14:53 | ollehar | Status | ready for testing => resolved |
2020-01-28 17:39 | lime_release_bot | Note Added: 55537 | |
2020-01-28 17:39 | lime_release_bot | Status | resolved => closed |