View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20473 | Bug reports | Survey editing | public | 2026-03-26 14:06 | 2026-03-26 16:33 |
| Reporter | blazej.kania@goddit.io | Assigned To | |||
| Priority | none | Severity | partial_block | ||
| Status | new | Resolution | open | ||
| Product Version | 6.16.x | ||||
| Summary | 20473: Could not save the subquestion after survey duplication | ||||
| Description | Few weeks ago I created new survey which is just copy of old one. After the survey activation I wasn't able to edit question with subquestions. All I received from the server was: { Could not save subquestion ","redirectTo": "/index.php/surveyAdministration/view?surveyid={sid}", "error": "Could not save subquestion", "detailedErrors": [] } I fixed it manually. The issue was, subquestions in new survey inherited gid of old survey. I run this sql query to fix DB: UPDATE lime_questions AS child In future, I don't want to manually edit the db rows, so can you fix that bug in next version? | ||||
| Steps To Reproduce | Steps to reproduce
Expected resultI can edit the question, db relations are set up correctly Actual resultSubquestions in new survey inherited gid of old survey | ||||
| Tags | No tags attached. | ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 6.16.5 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | Postgresql 17.6 | ||||
| Server OS (if known) | linux | ||||
| Webserver software & version (if known) | |||||
| PHP Version | 8.3 | ||||
|
You are not allowed to edit subquestion codes when the survey is active. |
|
|
You are right, but when I just click "Save" in top right corner I see the toast with error message. The problem is when I want to edit the main question. The field isn't disabled so I guess I can edit it, even when survey is active |
|
|
When survey is deactivated, the error still occurs |
|
|
@tibor.pacalat it seems the issue is
The gid of sub-questions must always be gid of the parent question. It can be in Data consistency check |
|
|
@DenisChenu can you reproduce? I don't see the gid being copied literally. |
|
|
Can not reproduce on 6.16.13 using quick copy |
|
|
@blazej.kania@goddit.io question type ? For us to be able to investigate this issue please attach a 2 question sample survey demonstrating the issue, either as .lss file (survey structure) or (even better) as .lsa file (survey archive). |
|
|
@DenisChenu I'll try to reproduce this issue again and send evidence |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-03-26 14:06 | blazej.kania@goddit.io | New Issue | |
| 2026-03-26 14:29 | tibor.pacalat | Note Added: 84529 | |
| 2026-03-26 14:29 | tibor.pacalat | File Added: Screenshot 2026-03-26 at 14.27.43.png | |
| 2026-03-26 14:29 | tibor.pacalat | Bug heat | 0 => 2 |
| 2026-03-26 14:33 | tibor.pacalat | Note Edited: 84529 | |
| 2026-03-26 15:20 | blazej.kania@goddit.io | Note Added: 84530 | |
| 2026-03-26 15:20 | blazej.kania@goddit.io | File Added: Screenshot 2026-03-26 at 15.20.00.png | |
| 2026-03-26 15:20 | blazej.kania@goddit.io | Bug heat | 2 => 4 |
| 2026-03-26 15:21 | blazej.kania@goddit.io | Note Added: 84531 | |
| 2026-03-26 16:00 | DenisChenu | Note Added: 84532 | |
| 2026-03-26 16:00 | DenisChenu | Bug heat | 4 => 6 |
| 2026-03-26 16:02 | tibor.pacalat | Note Added: 84533 | |
| 2026-03-26 16:20 | DenisChenu | Note Added: 84534 | |
| 2026-03-26 16:20 | DenisChenu | File Added: Capture d’écran du 2026-03-26 16-19-19.png | |
| 2026-03-26 16:21 | DenisChenu | Note Added: 84535 | |
| 2026-03-26 16:33 | blazej.kania@goddit.io | Note Added: 84536 |