View Issue Details

IDProjectCategoryView StatusLast Update
13822Bug reports[All Projects] Import/Exportpublic2018-07-11 12:05
ReporterMerkOneAssigned Toc_schmitz 
PrioritynoneSeveritymajor 
Status assignedResolutionopen 
Product Version3.12.x 
Target VersionFixed in Version 
Summary13822: Importing a question with subquestions, promotes subquestions to same level as parent
Description

When importing a question that has subquestions, the subquestions are "promoted" to the same level as the parent question and the parent question loses its children.

Steps To Reproduce

Create a survey, with one question group, one question with subquestions.
Export just the parent question.

Login to Limesurvey
Create a survey
Add a question group
Press "Create Question", then "Import Question"
Navigate to the exported file from the first phase
Complete the import process
Observe that the subquestions are now in the same QuestionGroup as the parent question, and the parent question has lost its children.

Additional Information

Potentially related to the create question issue I have raised.

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.12.2+180625 & 3.12.3
I will donate to the project if issue is resolvedNo
BrowserChrome
Database & DB-Versionsqlsrv
Operating System (Server)Linux 3.10.0-514.el7.x86_64 #1 SMP
Webserver software & versionApache/2.4.6 (Red Hat Enterprise Linux)
PHP Version7.0.30

Activities

c_schmitz

c_schmitz

2018-06-27 14:37

administrator   ~48319

I cannot reproduce that in 3.12.3
Please update and let us know if it works now.

MerkOne

MerkOne

2018-06-27 16:32

reporter   ~48349

I have updated with the latest ComfortUpdate & am still seeing this error. I think this may be a local install problem so am enabling debugging and will provide further feedback.

MerkOne

MerkOne

2018-07-02 11:41

reporter   ~48434

This issue is related to https://bugs.limesurvey.org/view.php?id=13821 - once the fix for that goes in, it should resolve this issue.

MerkOne

MerkOne

2018-07-11 12:05

reporter   ~48491

The issue here is that prior to fix 13821 when saving a question the identity value for a new question wasn't being returned. This caused the child questions to be added as parents. The fix for 13821 ensures that the ID for the new question is returned and so child questions are correctly imported.

The issue is now resolved.

Issue History

Date Modified Username Field Change
2018-06-27 12:11 MerkOne New Issue
2018-06-27 14:37 c_schmitz Assigned To => c_schmitz
2018-06-27 14:37 c_schmitz Status new => feedback
2018-06-27 14:37 c_schmitz Note Added: 48319
2018-06-27 16:32 MerkOne Note Added: 48349
2018-06-27 16:32 MerkOne Status feedback => assigned
2018-07-02 11:41 MerkOne Note Added: 48434
2018-07-11 12:05 MerkOne Note Added: 48491