View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20064Bug reportsSurvey editingpublic2025-04-19 00:30
Reportermfavetti Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version6.6.x 
Summary20064: Group order not set correctly when copying a question to a group such that subsequent copied questions end up in the wrong order
Description

There is some problem with the group order when copying a question to a group. If you then copy another question to the group, the position ("at end", etc.) of the question is incorrect.

This also causes unexpected results when trying to fix the order of the copied questions by dragging them in side panel.

Steps To Reproduce

Steps to reproduce

Create a survey with two groups and a question in one group.
Copy the question to the other group. (position "at end")
Copy the question to the other group again. (position "at end")

Expected result

The second copied question is after the first copied question.

Actual result

The second copied question is before the first copied question.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)6.13.0+250415
I will donate to the project if issue is resolvedNo
BrowserChrome Version 135.0.7049.95 (Official Build) (64-bit)
Database type & versionMariadb 10.11
Server OS (if known)Mint 22.1
Webserver software & version (if known)nginx 1.24
PHP Version8.3.19

Users monitoring this issue

There are no users monitoring this issue.

Activities

mfavetti

mfavetti

2025-04-19 00:20

developer   ~82445

looking in the database, the copied questions all get the question order 2 (even the first question copied to an empty group gets 2)

then when dragging, they get numbered 1-n, but not necessarily in the expected order

mfavetti

mfavetti

2025-04-19 00:30

developer   ~82446

the new group order seems to be n+1 of the source group instead of n+1 of the destination group

Issue History

Date Modified Username Field Change
2025-04-19 00:17 mfavetti New Issue
2025-04-19 00:20 mfavetti Note Added: 82445
2025-04-19 00:20 mfavetti Bug heat 0 => 2
2025-04-19 00:30 mfavetti Note Added: 82446