View Issue Details

This issue affects 2 person(s).
 16
IDProjectCategoryView StatusLast Update
20625Bug reportsQuestion editorpublic2026-08-24 09:53
Reportermtir Assigned Tostefankotes  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Summary20625: Question groups cannot be expanded / questions cannot be reordered after ComfortUpdate 7.0.4
Description

The issue started immediately after upgrading our self-hosted LimeSurvey installation from LimeSurvey 6 to LimeSurvey 7 using ComfortUpdate.

We have now updated to the latest available version:

  • LimeSurvey Community Edition 7.0.7
  • Build 260729
  • Database version: 708
    The problem is still present.

In the Survey Structure view:

  • Clicking on a question group does not expand or collapse it.
  • Clicking on a question or group does not open it.
  • Drag & drop does not work, so questions and groups cannot be reordered or moved.
  • Right-clicking a question or group and selecting "Open link in new tab" works correctly.

The issue affects both existing surveys and newly created surveys.

It also occurs:

  • With different administrator users.
  • In Chrome and Firefox.
  • In private/incognito mode.
  • With the original Vanilla survey theme as well as our custom theme derived from Vanilla.
  • After changing the global default survey theme to Vanilla.

We have already:

  • Cleared the LimeSurvey assets cache.
  • Deleted the contents of /tmp/assets.
  • Deleted the contents of /tmp/runtime.
  • Cleared the LiteSpeed cache.
  • Tested both urlFormat="get" and urlFormat="path".
  • Updated to the latest available version (7.0.7).

The issue remains unchanged after all these tests.

Steps To Reproduce

Steps to reproduce

  1. Upgrade a LimeSurvey 6 installation to LimeSurvey 7 using ComfortUpdate.
  2. Open the administration interface.
  3. Open an existing survey (or create a new one).
  4. Open the Survey Structure view.
  5. Click on a question group.
  6. Try to drag a question or group to another position.

Expected result

Question groups should expand and collapse normally.

Questions and groups should open when clicked.

Drag & drop should allow questions and groups to be reordered.

Actual result

Nothing happens.

Question groups do not expand.

Questions and groups do not respond to normal clicks.

Drag & drop does not work.

Opening the same link in a new browser tab works correctly.

TagsNo tags attached.
Bug heat16
Complete LimeSurvey version number (& build)7.0.7+260729
I will donate to the project if issue is resolvedNo
Browserchrome and moxilla
Database type & version11.4.12-MariaDB-cll-lve
Server OS (if known)Linux 4.18.0-553.141.2.lve.el8.x86_64 (CloudLinux)
Webserver software & version (if known)Litespeed
PHP Version8.1
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-07-31 12:49

administrator   ~85295

Please provide a screenshot or a screen capture demonstrating the issue. Also check your browser console for errors and post them here.

tibor.pacalat

tibor.pacalat

2026-07-31 12:59

administrator   ~85296

For 7.0.7 the DB version should be 709. i can not reproduce this issue locally on 7.0.7

tibor.pacalat

tibor.pacalat

2026-07-31 13:03

administrator   ~85297

Last edited: 2026-07-31 13:05

But there is something off with the drag and drop of groups, I will see what is up with that and get that fixed.

mtir

mtir

2026-07-31 13:11

reporter   ~85298

I have attached:
A short video showing the issue:
Question groups do not expand when clicked.
Drag & drop does not work.
Right-click → "Open link in new tab" works correctly.
A screenshot of the browser console after clearing it, reloading the page, and reproducing the issue.

tibor.pacalat

tibor.pacalat

2026-07-31 14:13

administrator   ~85299

Can you try if question group is expanding when you click on arrow just right from the drag icon?
Concerning drag and drop not working - you are trying to do this while your survey is active - this will not work. You need to deactivate survey if you want to shuffle questions/groups around.

mtir

mtir

2026-07-31 14:19

reporter   ~85300

Thank you for your suggestion.

I have tested it and clicking directly on the arrow next to the drag icon also does nothing. The question group does not expand.

c_schmitz

c_schmitz

2026-07-31 14:23

administrator   ~85302

Please check the network tab in the developer console for files that cannot be loaded when you open/refresh the page.

mtir

mtir

2026-07-31 14:35

reporter   ~85303

I checked the Network tab in the browser developer tools after clearing the log and performing a full page refresh.

All requested resources were loaded successfully (HTTP 200). I could not find any failed requests (404, 403, 500, cancelled, etc.).

I have also attached some screenshots of the Network tab after the page was loaded.

guest

guest

2026-08-03 14:45

viewer   ~85306

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

mtir

mtir

2026-08-04 13:13

reporter   ~85317

Thank you very much for the quick fix.
I will test it as soon as it is included in the next official LimeSurvey release and report back with the results.
Just to clarify, does this fix also address the issue where question groups cannot be expanded and questions/groups cannot be opened with a normal left-click (they can only be opened by right-clicking and selecting "Open link in new tab")?

Thank you again for your help.

tibor.pacalat

tibor.pacalat

2026-08-04 13:34

administrator   ~85319

@mtir the issues that I found are fixed within this PR, the rest were not reproducible. The fix will be included in the next regular release.

mtir

mtir

2026-08-04 13:39

reporter   ~85320

Thank you very much for the clarification.
I will install the next release as soon as it becomes available and test it again. I'll report back with the results.

LimeBot

LimeBot

2026-08-05 15:00

administrator   ~85352

Fixed in Release 7.0.8+260806

mtir

mtir

2026-08-06 10:03

reporter   ~85371

I have updated the installation to LimeSurvey 7.0.8+260806, which includes the fix from this issue.

Unfortunately, the problem is still fully reproducible in our installation:

Question groups do not expand when clicking the arrow.
Question groups and questions do not open with a normal left-click.
They can only be opened by right-clicking and selecting “Open link in new tab”.
Drag & drop still does not work when tested with a deactivated survey.

I cleared the LimeSurvey asset cache and performed a full browser refresh after the update, but the behaviour remains unchanged.

tibor.pacalat

tibor.pacalat

2026-08-06 12:54

administrator   ~85378

Since we can not reproduce the issue, one thing that you could do if you feel comfortable with it is:

  1. In Chrome browser, click on settings -> more tools -> developer tools
  2. Switch to console tab
  3. In console write monitorEvents($0, ["click", "mouseenter"]) and press enter
    This will track those events and you will see them popping up as you move the mouse to for example group and then clicking on the arrow.
    If you don't see events popping up than something is off on your side and javascript is not triggered.
    If you see some errors, please post them here.
  4. After your testing write in console unmonitorEvents($0, ["click", "mouseenter"]) and press enter

Sorry, but this is the only idea that I have at the moment.

mtir

mtir

2026-08-19 10:27

reporter   ~85478

Hi,

We have now been able to isolate the issue much more precisely, and we have a reproducible workaround that makes the Question Explorer work again.

We are currently on LimeSurvey 7.0.10. The same problem has persisted through several 7.x updates, on multiple computers and in both Chrome and Firefox.

The affected behaviours are:

Question groups do not expand/collapse.
Left-clicking a question group does nothing.
Left-clicking a question does nothing.
Drag & drop of question groups/questions does not work.
Right-click → “Open link in new tab” does work.

We checked the AJAX response from getAjaxQuestionGroupArray, and the group IDs are returned as strings, for example:

"gid": "2150"

In SurveyAdministrationController.php, actionGetAjaxQuestionGroupArray() uses:

$curGroup = $group->attributes;
$curQuestion = $question->attributes;

and sends these values to JSON without casting gid or qid to integers.

However, in adminsidepanel.js, the ID is retrieved from the HTML using jQuery:

var gid = $(e.currentTarget).data('gid');

In our environment this returns a number:

2150

while the value stored in questiongroups is a string:

"2150"

The code then uses strict equality:

var group = questiongroups.find(function (g) {
return g.gid === gid;
});

Therefore, in our case:

"2150" === 2150

returns false, so the group is not found.

The same strict comparison is also used for qid and in the drag & drop handlers.

We tested this directly in the browser console without modifying any LimeSurvey files. We temporarily forced jQuery .data('gid') and .data('qid') to return strings:

window.lsOriginalJqData = window.lsOriginalJqData || $.fn.data;

$.fn.data = function(key, value) {
if (arguments.length === 1 && (key === 'gid' || key === 'qid')) {
var v = window.lsOriginalJqData.apply(this, arguments);
return v == null ? v : String(v);
}
return window.
lsOriginalJqData.apply(this, arguments);
};

After running this code in the console, the Question Explorer started working correctly.

The groups expanded again and the normal click behaviour worked. This strongly indicates that the problem is caused by a type mismatch between the IDs returned by the backend and the IDs read by jQuery from the DOM.

A possible fix would be to normalize the IDs before comparison, for example:

Number(g.gid) === Number(gid)

or:

String(g.gid) === String(gid)

Alternatively, the PHP endpoint could explicitly cast gid and qid to integers before returning the JSON.

This may also explain why the issue is not reproducible in every environment: if PDO/Yii returns the database integer fields as integers on another installation, the strict comparison succeeds; in our environment they are returned as strings.

No server or LimeSurvey files were modified for this test; the workaround was applied only temporarily in the browser console and disappeared after reloading the page.

mtir

mtir

2026-08-19 13:15

reporter   ~85480

window.lsOriginalJqData = window.lsOriginalJqData || $.fn.data;

$.fn.data = function(key, value) {
if (arguments.length === 1 && (key === 'gid' || key === 'qid')) {
var v = window.lsOriginalJqData.apply(this, arguments);
return v == null ? v : String(v);
}
return window.
lsOriginalJqData.apply(this, arguments);
};

c_schmitz

c_schmitz

2026-08-19 17:03

administrator   ~85481

Question is why does your DB server hands you strings insteads of integers.

Can you try the attached file and see if it fixes the issue? (goes into application/controllers)

mtir

mtir

2026-08-20 07:34

reporter   ~85483

Hi, it worked perfectly. Thank you very much for your help!

mtir

mtir

2026-08-24 09:53

reporter   ~85493

I’ve now installed the 7.0.11 update, and the issue came back after the update replaced SurveyAdministrationController.php.

I then replaced the file again with the patched version you provided, and it immediately started working correctly again.

Could you please let me know if this fix is planned to be included in an upcoming release? Or will I need to replace SurveyAdministrationController.php manually after every update for the time being?

Related Changesets

LimeSurvey: master 0b27dff6

2026-08-03 14:45

Stefan K

Committer: GitHub


Details Diff
Fixed issue 20625: Question groups inconsistent behaviour when drag and dropping (05194) Affected Issues
20625
mod - assets/packages/adminsidepanel/build.min/js/adminsidepanel.js Diff File
mod - assets/packages/adminsidepanel/build/js/adminsidepanel.js Diff File
mod - assets/packages/adminsidepanel/build/js/adminsidepanel.js.map Diff File
mod - assets/packages/adminsidepanel/src/components/QuestionExplorer.js Diff File

Issue History

Date Modified Username Field Change
2026-07-31 12:33 mtir New Issue
2026-07-31 12:49 c_schmitz Note Added: 85295
2026-07-31 12:49 c_schmitz Bug heat 0 => 2
2026-07-31 12:59 tibor.pacalat Note Added: 85296
2026-07-31 12:59 tibor.pacalat File Added: Screen-2026-07-31-125812.mp4
2026-07-31 12:59 tibor.pacalat Bug heat 2 => 4
2026-07-31 13:03 tibor.pacalat Note Added: 85297
2026-07-31 13:05 tibor.pacalat Note Edited: 85297
2026-07-31 13:11 mtir Note Added: 85298
2026-07-31 13:11 mtir File Added: Grabación de pantalla 2026-07-31 130442.mp4
2026-07-31 13:11 mtir File Added: Captura de pantalla 2026-07-31 130550.png
2026-07-31 13:11 mtir Bug heat 4 => 6
2026-07-31 13:26 guest Bug heat 6 => 12
2026-07-31 14:13 tibor.pacalat Note Added: 85299
2026-07-31 14:19 mtir Note Added: 85300
2026-07-31 14:19 mtir File Added: Grabación de pantalla 2026-07-31 141720.mp4
2026-07-31 14:23 c_schmitz Note Added: 85302
2026-07-31 14:35 mtir Note Added: 85303
2026-07-31 14:35 mtir File Added: Captura de pantalla 2026-07-31 143453.png
2026-07-31 14:35 mtir File Added: Captura de pantalla 2026-07-31 143518.png
2026-07-31 15:40 stefankotes Assigned To => stefankotes
2026-07-31 15:40 stefankotes Status new => assigned
2026-08-03 14:45 Changeset attached => LimeSurvey master 0b27dff6
2026-08-03 14:45 guest Note Added: 85306
2026-08-03 14:45 guest Bug heat 12 => 14
2026-08-03 14:46 tibor.pacalat Status assigned => resolved
2026-08-03 14:46 tibor.pacalat Resolution open => fixed
2026-08-04 13:13 mtir Note Added: 85317
2026-08-04 13:34 tibor.pacalat Note Added: 85319
2026-08-04 13:39 mtir Note Added: 85320
2026-08-05 15:00 LimeBot Note Added: 85352
2026-08-05 15:00 LimeBot Status resolved => closed
2026-08-05 15:00 LimeBot Bug heat 14 => 16
2026-08-06 10:03 mtir Note Added: 85371
2026-08-06 12:54 tibor.pacalat Note Added: 85378
2026-08-19 10:27 mtir Note Added: 85478
2026-08-19 13:15 mtir Note Added: 85480
2026-08-19 13:15 mtir File Added: Captura de pantalla 2026-08-19 130755.png
2026-08-19 13:15 mtir File Added: Grabación de pantalla 2026-08-19 131432.mp4
2026-08-19 17:03 c_schmitz Note Added: 85481
2026-08-19 17:03 c_schmitz File Added: SurveyAdministrationController.php
2026-08-20 07:34 mtir Note Added: 85483
2026-08-24 09:53 mtir Note Added: 85493