View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
14486 | Bug reports | Expression Manager | public | 2019-02-04 15:47 | 2022-07-20 11:28 |
Reporter | ludogre | Assigned To | |||
Priority | low | Severity | partial_block | ||
Status | feedback | Resolution | open | ||
Product Version | 3.15.x | ||||
Summary | 14486: .question suffix broke usage of if function | ||||
Description | Hi! I've got an issue with a conditionnal expression. The survey always returns the value if it's false, even if the condition is true. | ||||
Steps To Reproduce | You can test it here: https://questionnaires.heureux-cyclage.org/index.php?r=survey/index&sid=685936&lang=fr | ||||
Additional Information | Here is the js debug message: LSLOG TypeError: "string is undefined" | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 3.15.0 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox 65 | ||||
Database type & version | mysql 5.5.62 | ||||
Server OS (if known) | Debian 8 | ||||
Webserver software & version (if known) | Nginx 1.6.2 | ||||
PHP Version | 5.6.39 | ||||
In 2.73 : no error in console, but broken too |
|
Updated title : .question suffix broke usage of if function |
|
Hello ludogre, |
|
Still an issue in 3.X But master JS still want to get attr.question even if this one is not set : https://github.com/LimeSurvey/LimeSurvey/blob/1dc8b53e7942e624a89763401b39c11db4318de2/assets/packages/expressions/em_javascript.js#L1116 Then fixed elsewhere : surely here : https://github.com/LimeSurvey/LimeSurvey/blob/1dc8b53e7942e624a89763401b39c11db4318de2/application/helpers/expressions/em_core_helper.php#L43 Related to New feature 14206: Allow plugin to update expression knowVars where we need STATIC functions and var. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2019-02-04 15:47 | ludogre | New Issue | |
2019-02-04 15:47 | ludogre | File Added: limesurvey_survey_685936.lss | |
2019-02-04 16:19 | DenisChenu | Note Added: 50394 | |
2019-02-04 16:22 | DenisChenu | Category | Conditions => Expression Manager |
2019-02-04 16:22 | DenisChenu | Summary | Only false value is return by my conditionnal expression => .question suffix broke usage of if function |
2019-02-04 16:22 | DenisChenu | Note Added: 50395 | |
2019-12-03 15:25 | cdorin | Assigned To | => cdorin |
2019-12-03 15:25 | cdorin | Status | new => assigned |
2021-02-08 13:08 | cdorin | Assigned To | cdorin => |
2021-02-08 13:08 | cdorin | Priority | none => low |
2021-02-08 13:08 | cdorin | Status | assigned => confirmed |
2021-02-08 13:08 | cdorin | Sync to Zoho Project | => |Yes| |
2022-07-19 20:20 | gabrieljenik | Status | confirmed => feedback |
2022-07-19 20:20 | gabrieljenik | Note Added: 71024 | |
2022-07-19 20:20 | gabrieljenik | Bug heat | 2 => 4 |
2022-07-20 11:28 | DenisChenu | Note Added: 71048 |