Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
13822Bug reportsImport/Exportpublic2019-05-23 09:56
ReporterMerkOne Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version3.12.x 
Fixed in Version3.17.x 
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.
Bug heat4
Complete LimeSurvey version number (& build)3.12.2+180625 & 3.12.3
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionsqlsrv
Server OS (if known)Linux 3.10.0-514.el7.x86_64 #1 SMP
Webserver software & version (if known)Apache/2.4.6 (Red Hat Enterprise Linux)
PHP Version7.0.30

Relationships

related to 13821 closedLouisGac When importing a survey I receive a "Failed to Insert [3]" error message 

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
2019-05-23 09:56 c_schmitz Relationship added related to 13821
2019-05-23 09:56 c_schmitz Status assigned => closed
2019-05-23 09:56 c_schmitz Resolution open => fixed
2019-05-23 09:56 c_schmitz Fixed in Version => 3.17.x