View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
16333Bug reportsSurvey editingpublic2020-09-18 15:27
Reporterong Assigned Toc_schmitz  
PrioritynoneSeveritytrivial 
Status closedResolutionwon't fix 
Product Version4.2.5 
Summary16333: question code can exist more than once per survey
Description

I noticed (exported to SPSS format), that I had an error in my question codes.
Doing a baseline I named all items base.... after the trial, the same questions were asked and named after...
At least this is what I wanted to do.
I missed some base variables and named those also after - that created no problems in lime survey directy, but when exporting (and removing the group code from the questions by hand to make variable names nicer), I noticed.
The effect is, that SPSS named the second occurence only V.. - as the name already existed.
You may say it's my fault, but I suggest: that it should be impossible to use the same question code more than once in a survey

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)4.2.4+200520
I will donate to the project if issue is resolvedNo
Browservivaldi
Database type & version8.0.18
Server OS (if known)debian
Webserver software & version (if known)apache
PHP Version7.something

Users monitoring this issue

There are no users monitoring this issue.

Activities

cdorin

cdorin

2020-05-26 14:32

reporter   ~58035

Can you attach the .lss file? I am not sure how two questions have the same code - shouldn't happen. Can you reproduce that?

DenisChenu

DenisChenu

2020-05-26 15:58

developer   ~58042

You may say it's my fault, but I suggest: that it should be impossible to use the same question code more than once in a survey

Shouldn't happen except if you do your survey before 2.06.0 (don't remind when exactly) : we don't broke old survey.

ollehar

ollehar

2020-05-27 15:37

administrator   ~58054

Subquestion code?

ong

ong

2020-05-30 11:17

reporter   ~58113

Hi,
yes, indeed it's about subquestion codes.
I am attaching a shortened .lss (removed items that are irrelevant to the described problem)
Olaf

DenisChenu

DenisChenu

2020-05-30 11:32

developer   ~58114

@olg : you mean you don't want to have Q01 with SQ01 and Q02 with (same) SQ01 ?

If yes : it's not an issue : it's the desired behaviour. We need it for example for array_filter

The issue is in your sentence « but when exporting (and removing the group code from the questions by hand to make variable names nicer)»

If by group code : you mean baseLISTK5185 or globLISTK5185 : it's part of question code : can/must not be removed.

ong

ong

2020-05-30 11:37

reporter   ~58117

Hi Denis,

thank you for the explanation. I agree - when users (in this case myself) are fiddeling with output = their problem. I really agree (being a programmer myself). But I thought I put it up here to be thought over, as I can imagine this could come up as a problem for others as well. ... maybe :-)

Olaf

Issue History

Date Modified Username Field Change
2020-05-26 14:12 ong New Issue
2020-05-26 14:32 cdorin Status new => feedback
2020-05-26 14:32 cdorin Note Added: 58035
2020-05-26 15:58 DenisChenu Note Added: 58042
2020-05-27 15:37 ollehar Note Added: 58054
2020-05-30 11:17 ong Note Added: 58113
2020-05-30 11:17 ong File Added: limesurvey_survey_713583 (1).lss
2020-05-30 11:17 ong Status feedback => new
2020-05-30 11:32 DenisChenu Note Added: 58114
2020-05-30 11:37 ong Note Added: 58117
2020-09-18 15:27 c_schmitz Assigned To => c_schmitz
2020-09-18 15:27 c_schmitz Status new => closed
2020-09-18 15:27 c_schmitz Resolution open => won't fix