View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
20064Bug reportsSurvey editingpublic2025-05-06 11:54
Reportermfavetti Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
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 heat8
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

gabrieljenik

gabrieljenik

2025-05-01 15:27

manager   ~82548

https://github.com/LimeSurvey/LimeSurvey/pull/4259

guest

guest

2025-05-05 17:56

viewer   ~82566

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=38807

LimeBot

LimeBot

2025-05-06 11:54

administrator   ~82579

Fixed in Release 6.13.2+250506

Related Changesets

LimeSurvey: master 616173d2

2025-05-05 17:56

Gabriel Jenik

Committer: GitHub


Details Diff
Fixed issue 20064: Group order not set correctly when copying a question to a group such that subsequent copied questions end up in the wrong order (04259)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
Affected Issues
20064
mod - application/controllers/QuestionAdministrationController.php Diff File

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
2025-04-24 21:59 tibor.pacalat Assigned To => gabrieljenik
2025-04-24 21:59 tibor.pacalat Status new => assigned
2025-05-01 15:27 gabrieljenik Assigned To gabrieljenik => DenisChenu
2025-05-01 15:27 gabrieljenik Status assigned => ready for code review
2025-05-01 15:27 gabrieljenik Note Added: 82548
2025-05-01 15:27 gabrieljenik Bug heat 2 => 4
2025-05-02 08:41 DenisChenu Assigned To DenisChenu => tibor.pacalat
2025-05-02 08:41 DenisChenu Status ready for code review => ready for testing
2025-05-05 17:56 Changeset attached => LimeSurvey master 616173d2
2025-05-05 17:56 guest Note Added: 82566
2025-05-05 17:56 guest Bug heat 4 => 6
2025-05-05 17:57 tibor.pacalat Status ready for testing => resolved
2025-05-05 17:57 tibor.pacalat Resolution open => fixed
2025-05-06 11:54 LimeBot Note Added: 82579
2025-05-06 11:54 LimeBot Status resolved => closed
2025-05-06 11:54 LimeBot Bug heat 6 => 8