View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06165Bug reportsSurvey editingpublic2012-06-07 11:02
ReporterTMSWhite Assigned ToTMSWhite  
PrioritylowSeverityminor 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06165: unable to implement affirmative exclusive non-answer in array_filter_exclude
Description

Some surveys have mandatory multiple choice answers with a NONE option as the exclusive non-answer. This ensures that there is an actual answer given (rather than having the user simply avoid checking any boxes).

Say you have a survey that asks which months are the best and worst for a symptom, and you want to use array_filter_exclude for the worst months (so that you can't say that your best and worst months were the same). Both lists need the "NONE" exclusive option. However, those NONE values should not be array_filter_excluded (e.g. just because you have no best months doesn't mean you have no worst months).

So, need array_filter_exclude to gracefully handle situations where the author has mismatched lists of sub-questions.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)120530
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql 5.3
Server OS (if known)Windows XP
Webserver software & version (if known)XAMPP
PHP Version5.3

Relationships

related to 06079 closedTMSWhite sub-question filtering broken if "other" or "no answer" option is given 

Users monitoring this issue

There are no users monitoring this issue.

Activities

TMSWhite

TMSWhite

2012-06-03 07:50

reporter   ~19041

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8633

TMSWhite

TMSWhite

2012-06-03 07:51

reporter   ~19043

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8635

TMSWhite

TMSWhite

2012-06-03 07:58

reporter   ~19045

This also fixes an interaction problem between exclusive option in question A and array_filter or array_filter_exclude on question B

c_schmitz

c_schmitz

2012-06-07 11:02

administrator   ~19100

New 1.91+ build released.

Related Changesets

LimeSurvey: master 8b549dca

2012-06-02 22:48:05

TMSWhite

Details Diff
Fixed issue 06165: unable to implement affirmative exclusive non-answer in array_filter_exclude
Fixed issue 06079: sub-question filtering broken if "other" or "no answer" option is given
Dev Array_filter and array_filter_exclude now handle mismatched lists of sub-questions gracefully. Values in list B that are not in list A will not be filtered, and will not throw errors.
Dev This lets authors support exclusive options like "none of the above" in array filtered questions
Affected Issues
06079, 06165
mod - classes/expressions/LimeExpressionManager.php Diff File

LimeSurvey: Yii a2b96ed8

2012-06-02 22:51:04

TMSWhite

Details Diff
Fixed issue 06165: unable to implement affirmative exclusive non-answer in array_filter_exclude
Fixed issue 06079: sub-question filtering broken if "other" or "no answer" option is given
Dev Array_filter and array_filter_exclude now handle mismatched lists of sub-questions gracefully. Values in list B that are not in list A will not be filtered, and will not throw errors.
Dev This lets authors support exclusive options like "none of the above" in array filtered questions
Affected Issues
06079, 06165
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-06-03 07:31 TMSWhite New Issue
2012-06-03 07:50 TMSWhite Changeset attached => LimeSurvey master 8b549dca
2012-06-03 07:50 TMSWhite Note Added: 19041
2012-06-03 07:50 TMSWhite Assigned To => TMSWhite
2012-06-03 07:50 TMSWhite Resolution open => fixed
2012-06-03 07:51 TMSWhite Changeset attached => LimeSurvey Yii a2b96ed8
2012-06-03 07:51 TMSWhite Note Added: 19043
2012-06-03 07:51 TMSWhite Relationship added related to 06079
2012-06-03 07:52 TMSWhite Status new => resolved
2012-06-03 07:52 TMSWhite Fixed in Version => 1.92+
2012-06-03 07:58 TMSWhite Note Added: 19045
2012-06-07 11:02 c_schmitz Note Added: 19100
2012-06-07 11:02 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing