View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20625 | Bug reports | Question editor | public | 2026-07-31 12:33 | 2026-08-24 09:53 |
| Reporter | mtir | Assigned To | stefankotes | ||
| Priority | none | Severity | block | ||
| Status | closed | Resolution | fixed | ||
| Summary | 20625: 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:
In the Survey Structure view:
The issue affects both existing surveys and newly created surveys. It also occurs:
We have already:
The issue remains unchanged after all these tests. | ||||
| Steps To Reproduce | Steps to reproduce
Expected resultQuestion groups should expand and collapse normally. Questions and groups should open when clicked. Drag & drop should allow questions and groups to be reordered. Actual resultNothing 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. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 16 | ||||
| Complete LimeSurvey version number (& build) | 7.0.7+260729 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | chrome and moxilla | ||||
| Database type & version | 11.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 Version | 8.1 | ||||
| Git branch / Pull Request URL | |||||
|
Please provide a screenshot or a screen capture demonstrating the issue. Also check your browser console for errors and post them here. |
|
|
For 7.0.7 the DB version should be 709. i can not reproduce this issue locally on 7.0.7 |
|
|
But there is something off with the drag and drop of groups, I will see what is up with that and get that fixed. |
|
|
I have attached: |
|
|
Can you try if question group is expanding when you click on arrow just right from the drag icon? |
|
|
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. |
|
|
Please check the network tab in the developer console for files that cannot be loaded when you open/refresh the page. |
|
|
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. |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40090 |
|
|
Thank you very much for the quick fix. Thank you again for your help. |
|
|
@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. |
|
|
Thank you very much for the clarification. |
|
|
Fixed in Release 7.0.8+260806 |
|
|
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. I cleared the LimeSurvey asset cache and performed a full browser refresh after the update, but the behaviour remains unchanged. |
|
|
Since we can not reproduce the issue, one thing that you could do if you feel comfortable with it is:
Sorry, but this is the only idea that I have at the moment. |
|
|
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. 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; 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) { 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) { 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. |
|
|
window.lsOriginalJqData = window.lsOriginalJqData || $.fn.data; $.fn.data = function(key, value) { |
|
|
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) |
|
|
Hi, it worked perfectly. Thank you very much for your help! |
|
|
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? |
|
|
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 | ||
| 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 |