View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09344Bug reportsConditionspublic2014-11-26 10:29
Reporterjuusotam Assigned ToDenisChenu  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary09344: AND rules with ATTRIBUTE disappear when modifying the survey
Description

I want to predefine the groups using ATTRIBUTE_1 as group designator.

If I create a condition that a question should be shown only if user is in group1 AND answered a previous question Yes the condition is created OK. If I then edit a question that is not related to that rule the ATTRIBUTE condition gets removed.

Also, if I export the survey and re-import it and create the tokens table the condition is removed.

Steps To Reproduce

Import the LSS file
Check the logic file. There should be ((TOKEN:ATTRIBUTE_1 == "group1") and (question1.NAOK == "Y")) with question4.
Create the tokens table
Check the logic file. The question4 condition is changed to (question1.NAOK == "Y"))
Add the AND rule again. There most like IS the rule in the edit mode already there. If so, remove it and re-add it.
Check the logic file.
Edit question question two, add another option for answer.
Check the logic file.

TagsNo tags attached.
Attached Files
Screenshot_1_logic.png (168,417 bytes)
Bug heat6
Complete LimeSurvey version number (& build)141020
I will donate to the project if issue is resolvedYes
BrowserGoogle Chrome
Database type & versionMySQL 5.6.20
Server OS (if known)OS X 10.9 server
Webserver software & version (if known)Apache 2.2.26
PHP Version5.4.24

Users monitoring this issue

juusotam

Activities

c_schmitz

c_schmitz

2014-11-23 19:41

administrator   ~31057

After I import the original survey and directly check out question 4 (without creating tokens or activating) the shown relevance equation and the conditions are different. I can't see any reason why.

DenisChenu

DenisChenu

2014-11-24 13:03

developer   ~31080

condition to relevance is set only when import (if we don't update the condition)

Don't see a way to reset it actually.

1st : fix the bug when importing
2nd : find a way to reset : maybe a parameters in survey_logic file ?

DenisChenu

DenisChenu

2014-11-25 09:48

developer   ~31091

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

DenisChenu

DenisChenu

2014-11-25 10:07

developer   ~31092

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

c_schmitz

c_schmitz

2014-11-26 10:29

administrator   ~31094

Version 2.05 Build 141126 released

Related Changesets

LimeSurvey: master 14d6a1cd

2014-11-25 08:47:53

DenisChenu

Details Diff
Fixed issue 09344: AND rules with ATTRIBUTE disappear when modify and importing the survey
Dev : importing : bad order for getConditionsForEM : with $qid set : it work
Dev : modify : debug to 2 show Notice, surely broke before
Affected Issues
09344
mod - application/controllers/admin/conditionsaction.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File

LimeSurvey: 2.06 605b8f5e

2014-11-25 09:06:53

DenisChenu

Details Diff
Fixed issue 09344: AND rules with ATTRIBUTE disappear when modify and importing the survey
Dev : importing : bad order for getConditionsForEM : with $qid set : it work
Dev : modify : debug to 2 show Notice, surely broke before
Dev : reset the relevance equation when show condition (if needed)
Dev : TODO : use Yii on getConditionsForEM, but big request here
Affected Issues
09344
mod - application/controllers/admin/conditionsaction.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2014-11-01 12:55 juusotam New Issue
2014-11-01 12:55 juusotam File Added: original-limesurvey_survey_117644.lss
2014-11-01 12:56 juusotam File Added: changed_question_2_limesurvey_survey_117644.lss
2014-11-01 12:58 juusotam File Added: Screenshot_1_logic.png
2014-11-01 12:58 juusotam Issue Monitored: juusotam
2014-11-01 12:58 juusotam File Added: Screenshot_2_logic_modified_Q2.png
2014-11-01 12:58 juusotam File Added: Screenshot_3_condition_edit_after_modifying_Q2.png
2014-11-13 01:20 c_schmitz Assigned To => c_schmitz
2014-11-13 01:20 c_schmitz Status new => assigned
2014-11-23 19:40 c_schmitz Assigned To c_schmitz => DenisChenu
2014-11-23 19:41 c_schmitz Note Added: 31057
2014-11-24 13:03 DenisChenu Note Added: 31080
2014-11-25 09:48 DenisChenu Changeset attached => LimeSurvey master 14d6a1cd
2014-11-25 09:48 DenisChenu Note Added: 31091
2014-11-25 09:48 DenisChenu Resolution open => fixed
2014-11-25 10:07 DenisChenu Changeset attached => LimeSurvey 2.06 605b8f5e
2014-11-25 10:07 DenisChenu Note Added: 31092
2014-11-25 10:07 DenisChenu Status assigned => resolved
2014-11-25 10:07 DenisChenu Fixed in Version => 2.05+
2014-11-26 10:29 c_schmitz Note Added: 31094
2014-11-26 10:29 c_schmitz Status resolved => closed
2021-08-03 13:19 guest Bug heat 4 => 6