View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09218Bug reportsConditionspublic2016-07-22 12:43
Reporterroutard Assigned Toc_schmitz  
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
Fixed in Version2.05+ 
Summary09218: Small bug AND/OR
Description

Bug when adding a new set of conditions.
If the conditions are for different constants, then the operator is :

  • AND if the same scenario number
  • OR if you change the scenario number
    OK with that.

But if the conditions are for the same constant, ie. :

  • condition 1 : token == aaaaa
  • condition 2 : token == bbbbb
    The operator is "OR" on the condition page but it is "AND" when going back to the question administration (in the equation filter field) which is not loigical (see joined file). It should always be "OR" when the same constant is used, regardless the scenario value (in this case the condition token == aaaaa AND token == bbbbb would never be true!).
TagsNo tags attached.
Attached Files
bug_LS.jpg (489,655 bytes)
Bug heat6
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Relationships

related to 11412 closedc_schmitz When Using "Set Conditions" on a question using 2 scenarios and 2 conditions each, the final condition becomes OR OR OR 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2014-09-14 10:22

developer   ~30622

Alternative : use Expression Manager directly

routard

routard

2014-09-17 12:04

reporter   ~30675

Yes it is what I did but not so easy for everybody! And there is still a bug since 'AND' is displayed on a page while 'OR' is displayed on the other ;-)

DenisChenu

DenisChenu

2014-09-17 14:35

developer   ~30676

Yes, you're right. I move it in BUG part, why did you put in feature request ;)

c_schmitz

c_schmitz

2014-10-10 13:33

administrator   ~30777

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

c_schmitz

c_schmitz

2014-10-20 13:49

administrator   ~30830

Version 2.05+ Build 141020 released

Related Changesets

LimeSurvey: master f7572e9b

2014-10-10 10:51:04

c_schmitz

Details Diff
Fixed issue 09218: When adding conditions fields referring to the same token field Affected Issues
09218
mod - application/controllers/admin/conditionsaction.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File
mod - styles/adminstyle.css Diff File

Issue History

Date Modified Username Field Change
2014-09-08 12:49 routard New Issue
2014-09-08 12:49 routard File Added: bug_LS.jpg
2014-09-14 10:22 DenisChenu Note Added: 30622
2014-09-17 12:04 routard Note Added: 30675
2014-09-17 14:34 DenisChenu Project Feature requests => Bug reports
2014-09-17 14:35 DenisChenu Note Added: 30676
2014-10-10 12:43 c_schmitz Assigned To => c_schmitz
2014-10-10 12:43 c_schmitz Status new => assigned
2014-10-10 13:33 c_schmitz Changeset attached => LimeSurvey master f7572e9b
2014-10-10 13:33 c_schmitz Note Added: 30777
2014-10-10 13:33 c_schmitz Resolution open => fixed
2014-10-10 14:04 c_schmitz Status assigned => resolved
2014-10-10 14:04 c_schmitz Fixed in Version => 2.05+
2014-10-20 13:49 c_schmitz Note Added: 30830
2014-10-20 13:49 c_schmitz Status resolved => closed
2016-07-22 12:43 c_schmitz Relationship added related to 11412