View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15802 | Bug reports | Expression Manager | public | 2020-01-31 08:43 | 2020-01-31 16:32 |
Reporter | DenisChenu | Assigned To | ollehar | ||
Priority | normal | Severity | minor | ||
Status | acknowledged | Resolution | open | ||
Product Version | 3.22.1 | ||||
Summary | 15802: Invalid warning string about numeric value | ||||
Description | The warning show with function and + operator are always «Usage of + with numeric value, see manual about usage of sum.» and never «Usage of + with string value» | ||||
Steps To Reproduce | Import included survey, check logic file | ||||
Additional Information | 2 issues here :
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 3.22 and 4.10 | ||||
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 | php7.3 | ||||
Str concat instead of + ? |
|
Maybe : bothnumeric : I view this yesterday on a training instance about date. It's clearly string concat needed, but still talk to sum … |
|
Warning text: "Please use concat() instead of '+' when concatenating two strings." ? |
|
Remind : when checking in logic file, you don't have real value … Then for example : single choice Q1.NAOK return "" even if all choice are number :) Then bothNumeric : yes sure at 100%, not bothnumeric … : maybe both numeric. |
|
User should type-cast NAOK to int with parseInt(). |
|
See the lss : even with I know user must use sum or join (no need intval …) , and we give him the advice … but seems strabnge to see use sum with Then : i think |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-01-31 08:43 | DenisChenu | New Issue | |
2020-01-31 08:43 | DenisChenu | File Added: limesurvey_survey_BadWarning.lss | |
2020-01-31 08:43 | DenisChenu | File Added: Capture d’écran du 2020-01-31 08-36-10.png | |
2020-01-31 08:47 | DenisChenu | Summary | INvalid warning string about numeric value => Invalid warning string about numeric value |
2020-01-31 08:47 | DenisChenu | Relationship added | related to 15803 |
2020-01-31 11:33 | ollehar | Note Added: 55577 | |
2020-01-31 12:02 | DenisChenu | Note Added: 55578 | |
2020-01-31 12:51 | ollehar | Note Added: 55580 | |
2020-01-31 12:52 | ollehar | Priority | none => normal |
2020-01-31 13:45 | ollehar | Assigned To | => ollehar |
2020-01-31 13:45 | ollehar | Status | new => acknowledged |
2020-01-31 14:15 | DenisChenu | Note Added: 55589 | |
2020-01-31 15:13 | ollehar | Note Added: 55591 | |
2020-01-31 16:32 | DenisChenu | Note Added: 55598 |