View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
08137Bug reportsExpression Managerpublic2013-09-23 13:27
Reporteriquito Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary08137: Relevance equation incorrectly saved for questions
Description

When manually setting a relevance equation for a question (not a group) the variables seems to always be translated into names containing the survey ID (for example, "697649X33X406.NAOK" instead of "chance.NAOK"). Even if I explicitely type in "chance.NAOK" it is immediately converted to "697649X33X406.NAOK" (or whatever the survey ID is) upon saving.

Steps To Reproduce

An easy way to reproduce it is to import the attached survey file and edit the question "motivatehow". The relevance equation is shown with the survey-ID-variable, although in the imported data it was "((chance.NAOK == "Y"))".

Even easier is to just import the survey file and immediately export it again as .lss. In the exported lss-file you are stuck with the survey-ID-variable instead of chance.NAOK, which makes it impossible to import it again correctly.

TagsNo tags attached.
Attached Files
survey_export_bug.lss (15,123 bytes)
Bug heat6
Complete LimeSurvey version number (& build)130802
I will donate to the project if issue is resolvedNo
BrowserDoes not matter
Database type & versionMariaDB 5.5.25
Server OS (if known)Debian Wheezy
Webserver software & version (if known)Nginx & PHP-FPM
PHP Version5.4.17

Relationships

parent of 08174 closedc_schmitz Unable to remove bad conditions 

Users monitoring this issue

mfaber

Activities

iquito

iquito

2013-09-09 16:39

reporter   ~26191

I found out why the Relevance equation could not be changed - because I used the Conditions designer first to find out how the relevance equation looks like. I think a bug report already exists - it is very confusing when trying to change a relevance equation, which is not saved, without any hint that it was not changed because a condition was previously set. A warning message in the form (like "Relevance equation cannot be edited directly because you defined a condition in the conditions designer") would really help - I spent hours just trying to correctly export and import the survey.

This still seems to be a wrong conversion from the Conditions designer to Relevance equation - instead of using the question code variables it uses survey-ID-specific variables, which breaks on export or sometimes also when copying the survey. The conditions designer should use reusable variables.

c_schmitz

c_schmitz

2013-09-23 13:15

administrator   ~26315

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

c_schmitz

c_schmitz

2013-09-23 13:27

administrator   ~26317

Version 2.00+ Build 130923 released

Related Changesets

LimeSurvey: 2.05 854d3c3e

2013-05-23 16:35:18

DenisChenu

Details Diff
Fixed issue : Relevance equation seems to be editable even if not.
Dev: add a test if condition exist
Affected Issues
08137, 08174
mod - application/controllers/admin/questions.php Diff File
mod - application/views/admin/survey/Question/editQuestion_view.php Diff File

LimeSurvey: master d8e5532d

2013-09-18 13:54:08

c_schmitz

Details Diff
Fixed issue 8137: Relevance equation cannot be edited for unknown reasons Affected Issues
08137
mod - application/controllers/admin/question.php Diff File
mod - application/models/Questions.php Diff File
mod - application/views/admin/survey/Question/editQuestion_view.php Diff File
mod - styles/blobblueish/adminstyle.css Diff File
mod - styles/gringegreen/adminstyle.css Diff File

LimeSurvey: master 66dacc0b

2013-09-23 11:15:44

c_schmitz

Details Diff
Fixed issue 08137: Relevance equation cannot be edited for unknown reasons
Dev Fix for hasConditions
Affected Issues
08137
mod - application/models/Questions.php Diff File

Issue History

Date Modified Username Field Change
2013-09-07 17:41 iquito New Issue
2013-09-07 17:41 iquito File Added: survey_export_bug.lss
2013-09-09 16:39 iquito Note Added: 26191
2013-09-09 17:28 mfaber Issue Monitored: mfaber
2013-09-12 23:28 c_schmitz Assigned To => c_schmitz
2013-09-12 23:28 c_schmitz Status new => assigned
2013-09-18 15:58 c_schmitz Status assigned => resolved
2013-09-18 15:58 c_schmitz Fixed in Version => 2.00+
2013-09-18 15:58 c_schmitz Resolution open => fixed
2013-09-18 15:58 c_schmitz Changeset attached => LimeSurvey master d8e5532d
2013-09-19 21:06 DenisChenu Relationship added parent of 08174
2013-09-19 21:17 DenisChenu Changeset attached => LimeSurvey 2.05 854d3c3e
2013-09-23 13:15 c_schmitz Changeset attached => LimeSurvey master 66dacc0b
2013-09-23 13:15 c_schmitz Note Added: 26315
2013-09-23 13:27 c_schmitz Note Added: 26317
2013-09-23 13:27 c_schmitz Status resolved => closed
2021-08-02 20:26 guest Bug heat 4 => 6