| Anonymous | Login | 2013-05-22 10:54 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap | Repositories |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 07200 | Bug reports | [All Projects] Survey taking | public | 2013-01-16 16:42 | 2013-01-29 12:44 | ||||
| Reporter | helper | ||||||||
| Assigned To | TMSWhite | ||||||||
| Priority | high | Severity | major | ||||||
| Status | closed | Resolution | no change required | ||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 07200: isEmpty logic at the question fails | ||||||||
| Description | I have a question that looks at a previous group to check for an answer ((!is_empty(HH_SALT.NAOK) or HH_SALT.NAOK != "A1")) The above is generated from the UI logic selector within the question. | ||||||||
| Steps To Reproduce | 1. Import attached survey and navigate to the survey. 2. Click on "Test this survey." 3. Do not select any answers for the first group - just click on "Next" Salt and sugary drink questions appear even thought he logic say not. | ||||||||
| I will donate to the project if issue is resolved within 48 hrs | No | ||||||||
| LimeSurvey build number | 130116 | ||||||||
| Browser | Chrome | ||||||||
| Database & DB-Version | mySQL | ||||||||
| Operating System (Server) | Windows 7 | ||||||||
| Webserver software & version | Apache | ||||||||
| PHP Version | 3.4 | ||||||||
| Attached Files | |||||||||
Notes |
|
|
helper (reporter) 2013-01-16 18:29 |
Workaround: Edit the delete the defined set of logic created by the UI tool and insert the following: ((HH_SALT.NAOK != "" and HH_SALT.NAOK != "A1")) |
|
c_schmitz (administrator) 2013-01-18 22:23 |
Thomas, any idea? |
|
TMSWhite (developer) 2013-01-19 01:02 |
Carsten- The logic is properly generated from the Conditions editor and properly executed. HH_SALT.NAOK != "A1" will be true for any value that is not A1, including a non-answer. In general, if you select multiple comparison options within a scenario for a condition, those options are always "OR"ed together. I don't recall any business rules that state they should be ANDed together (such as if you mix != and == comparisons). So, to the best of my understanding, this is working completely as designed. As helper states, the workaround is easy - just specify the relevance directly instead of using the Conditions GUI. FYI, I tested this on 1.92 and 2.0. |
|
TMSWhite (developer) 2013-01-24 06:07 |
Per the note, this is working as designed. |
|
c_schmitz (administrator) 2013-01-29 12:44 |
New version 2.00+ Build 120129 released |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2013-01-16 16:42 | helper | New Issue | |
| 2013-01-16 16:42 | helper | File Added: limesurvey_survey_882993.lss | |
| 2013-01-16 18:29 | helper | Note Added: 23698 | |
| 2013-01-18 22:22 | c_schmitz | Assigned To | => TMSWhite |
| 2013-01-18 22:22 | c_schmitz | Status | new => assigned |
| 2013-01-18 22:23 | c_schmitz | Note Added: 23712 | |
| 2013-01-18 22:23 | c_schmitz | Status | assigned => feedback |
| 2013-01-19 01:02 | TMSWhite | Note Added: 23717 | |
| 2013-01-24 06:07 | TMSWhite | Note Added: 23785 | |
| 2013-01-24 06:07 | TMSWhite | Status | feedback => resolved |
| 2013-01-24 06:07 | TMSWhite | Resolution | open => no change required |
| 2013-01-29 12:44 | c_schmitz | Note Added: 23888 | |
| 2013-01-29 12:44 | c_schmitz | Status | resolved => closed |
| Copyright © 2000 - 2013 MantisBT Team |