View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06186Bug reportsExpression Managerpublic2012-06-20 14:08
ReporterEricChasin Assigned ToTMSWhite  
PriorityhighSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06186: Array Question Type: EM doesn't convert condition correctly, AND becomes OR
Description

This issue seams to very similar to 06139

When creating a condition using the condition editor for a SUBQUESTION in a Array that has AND logic.

Example: If SQ001 = YES and SQ001 = YES then do this.

EM doesn't convert the condition correctly and shows an OR connector between the two questions. See attached screen shots. If edit the RELEVANCE EQUATION in our local DB instance it works fine.

Steps To Reproduce

See Screen Shots. The were created on ntelx.limequery.com.

  1. Create Question Group
  2. Create Question(Array) with 2 SubQuestions
  3. Create Question (TEXT) with conditional logic
TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)12608
I will donate to the project if issue is resolvedYes
BrowserChrome/IE
Database type & versionHosted
Server OS (if known)Hosted
Webserver software & version (if known)Hosted
PHP VersionHosted

Relationships

related to 06231 closedTMSWhite EM doesn't convert condition correctly, OR becomes AND 

Users monitoring this issue

EricChasin

Activities

TMSWhite

TMSWhite

2012-06-09 23:46

reporter   ~19136

Yes, I can reproduce this bug.

TMSWhite

TMSWhite

2012-06-10 05:34

reporter   ~19143

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

TMSWhite

TMSWhite

2012-06-10 05:37

reporter   ~19144

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

c_schmitz

c_schmitz

2012-06-20 14:08

administrator   ~19391

New 1.92+ version released.

Related Changesets

LimeSurvey: master 2ae348b0

2012-06-09 20:33:57

TMSWhite

Details Diff
Fixed issue 06186: Array Question Type: EM doesn't convert condition correctly, AND becomes OR
Dev ConvertConditionsToRelevance was not ANDing together conditions from different sub-questions within the same question.
Dev the automatic upgrade to database version 155.5 will fix this in the database for all questions
Affected Issues
06186
mod - classes/expressions/LimeExpressionManager.php Diff File

LimeSurvey: Yii 996d1907

2012-06-09 20:37:12

TMSWhite

Details Diff
Fixed issue 06186: Array Question Type: EM doesn't convert condition correctly, AND becomes OR
Dev ConvertConditionsToRelevance was not ANDing together conditions from different sub-questions within the same question.
Dev the automatic upgrade to database version 155.5 will fix this in the database for all questions
Affected Issues
06186
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-06-09 13:40 EricChasin New Issue
2012-06-09 13:40 EricChasin Status new => assigned
2012-06-09 13:40 EricChasin Assigned To => TMSWhite
2012-06-09 14:39 EricChasin Issue Monitored: EricChasin
2012-06-09 14:40 EricChasin File Added: EM_ConditionEditor_Array.doc
2012-06-09 23:46 TMSWhite Note Added: 19136
2012-06-10 05:34 TMSWhite Changeset attached => LimeSurvey master 2ae348b0
2012-06-10 05:34 TMSWhite Note Added: 19143
2012-06-10 05:34 TMSWhite Resolution open => fixed
2012-06-10 05:37 TMSWhite Changeset attached => LimeSurvey Yii 996d1907
2012-06-10 05:37 TMSWhite Note Added: 19144
2012-06-10 05:39 TMSWhite Status assigned => resolved
2012-06-10 05:39 TMSWhite Fixed in Version => 1.92+
2012-06-18 15:17 TMSWhite Relationship added related to 06231
2012-06-20 14:08 c_schmitz Note Added: 19391
2012-06-20 14:08 c_schmitz Status resolved => closed