View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
12741 | Bug reports | Conditions | public | 2017-10-03 22:48 | 2018-06-11 16:27 |
Reporter | blocka | Assigned To | DenisChenu | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.7x.x | ||||
Fixed in Version | 3.10.x | ||||
Summary | 12741: Setting Condition where Constant = 0 treated as "no answer" | ||||
Description | If I set a condition to check the value of multiple numeric input, and I set the condition to "question Equals a constant of 0", I get the message: Your condition could not be added! It did not include the question and/or answer upon which the condition was based. Please ensure you have selected a question and an answer. Seems my workaround needs to be to set condition as "question less than a constant of 1". Not sure, but seems to me that maybe a value of zero is being considered a null value? | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | Latest, build 170927 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | All | ||||
Database type & version | mySQL 5.6x. | ||||
Server OS (if known) | Centos | ||||
Webserver software & version (if known) | Apache | ||||
PHP Version | 7.0.x | ||||
Denis, what do you think about this bug? |
|
I never use Condition editor … seemd to be an error with editor ? Maybe testing value == false and not value === null ? What happen on 3.X ? |
|
IN 2.73.1 and 3.9 : Then : GUI is broken. OK with single choice (using 0 as constant validate, but when edit show the choice) but not with a numeric. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=27354 |
|
|
|
LimeSurvey: master f4ba148f 2018-06-07 11:06 Details Diff |
Fixed issue 12741: Setting Condition where Constant = 0 treated as "no answer" Dev: usage of getPost('post','') default to empy string Dev: test with === Dev: some switch in place of if/elseif |
Affected Issues 12741 |
|
mod - application/controllers/admin/conditionsaction.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-10-03 22:48 | blocka | New Issue | |
2017-10-03 22:48 | blocka | File Added: 1.png | |
2018-05-23 11:35 |
|
Assigned To | => DenisChenu |
2018-05-23 11:35 |
|
Status | new => assigned |
2018-05-23 11:35 |
|
Note Added: 47749 | |
2018-05-24 18:22 | DenisChenu | Note Added: 47804 | |
2018-06-07 08:31 | DenisChenu | File Added: limesurvey_survey_Condition0.lss | |
2018-06-07 08:31 | DenisChenu | Note Added: 48012 | |
2018-06-07 08:32 | DenisChenu | Note Edited: 48012 | |
2018-06-07 08:46 | DenisChenu | Note Edited: 48012 | |
2018-06-07 09:06 | DenisChenu | Changeset attached | => LimeSurvey master f4ba148f |
2018-06-07 09:06 | DenisChenu | Note Added: 48013 | |
2018-06-07 09:06 | DenisChenu | Resolution | open => fixed |
2018-06-07 09:07 | DenisChenu | Status | assigned => resolved |
2018-06-07 09:07 | DenisChenu | Fixed in Version | => 3.8.x |
2018-06-07 09:07 | DenisChenu | Note Added: 48014 | |
2018-06-11 16:27 |
|
Status | resolved => closed |
2018-06-11 16:27 |
|
Fixed in Version | 3.8.x => 3.10.x |