View Issue Details

This bug affects 2 person(s).
 12
IDProjectCategoryView StatusLast Update
19597Bug reportsUsability/user experiencepublic2025-08-07 13:29
Reportermfavetti Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version6.5.x 
Summary19597: Initially selected question group is not correct when adding a question directly after adding another question
Description

in the admin panel
on the sidebar
on the structure tab
the "Add question" button

when adding a question, there is a drop down called "Question group" for which group to put the new question in. The initially selected item in this menu is one of three cases:

  1. No question/group selected: first question group of the survey
  2. Question group selected: currently selected question group
  3. Question selected: question group that the currently selected question belongs to

However, if you've just added a question to a group and click the "Add question" button again, the initially selected question group is the first question group of the survey, rather than the group you just added a question to even though it should be case 3 above.

Steps To Reproduce

Steps to reproduce

  1. Create survey
  2. Add question group
  3. Click "Add question" button and add a question to the new group
  4. Click "Add question" button to add a second question to the new group

Expected result

Second new question has the same question group initially selected

Actual result

Second new question has the first question group of the survey initially selected

TagsNo tags attached.
Bug heat12
Complete LimeSurvey version number (& build)6.5.10
I will donate to the project if issue is resolvedNo
BrowserChrome 125.0.6422.141
Database type & versionMariadb 10.11
Server OS (if known)Mint 21.3
Webserver software & version (if known)nginx 1.18
PHP Version8.0/8.1/8.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2025-07-22 12:28

developer   ~83118

It's happen each time now.

Add a group
Select Add question group after : OK
Select Add question in Structure : 1st group selected

DenisChenu

DenisChenu

2025-07-22 12:31

developer   ~83119

Seems to happen each time a question is added.
Even with existing group

gabrieljenik

gabrieljenik

2025-07-30 15:54

manager   ~83159

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

Tests are failing... need to review

DenisChenu

DenisChenu

2025-07-30 16:17

developer   ~83160

Remove last , :)

guest

guest

2025-08-07 13:29

viewer   ~83185

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

Related Changesets

LimeSurvey: master 45718479

2025-08-07 13:29

Gabriel Jenik

Committer: GitHub


Details Diff
Fixed issue 19597: Initially selected question group is not correct when adding a question directly after adding another question (#4385)

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

Issue History

Date Modified Username Field Change
2024-06-11 00:22 mfavetti New Issue
2025-07-22 12:27 guest Bug heat 0 => 6
2025-07-22 12:28 DenisChenu Note Added: 83118
2025-07-22 12:28 DenisChenu File Added: Capture vidéo du 2025-07-22 12-27-51.webm
2025-07-22 12:28 DenisChenu Bug heat 6 => 8
2025-07-22 12:31 DenisChenu Note Added: 83119
2025-07-22 12:31 DenisChenu File Added: Capture vidéo du 2025-07-22 12-29-48.webm
2025-07-23 15:32 tibor.pacalat Assigned To => gabrieljenik
2025-07-23 15:32 tibor.pacalat Status new => assigned
2025-07-30 15:54 gabrieljenik Assigned To gabrieljenik => DenisChenu
2025-07-30 15:54 gabrieljenik Status assigned => ready for code review
2025-07-30 15:54 gabrieljenik Note Added: 83159
2025-07-30 15:54 gabrieljenik Bug heat 8 => 10
2025-07-30 16:17 DenisChenu Assigned To DenisChenu => gabrieljenik
2025-07-30 16:17 DenisChenu Status ready for code review => in code review
2025-07-30 16:17 DenisChenu Note Added: 83160
2025-08-05 16:58 DenisChenu Assigned To gabrieljenik => tibor.pacalat
2025-08-05 16:58 DenisChenu Status in code review => ready for testing
2025-08-07 13:29 Changeset attached => LimeSurvey master 45718479
2025-08-07 13:29 guest Note Added: 83185
2025-08-07 13:29 guest Bug heat 10 => 12
2025-08-07 13:29 tibor.pacalat Status ready for testing => resolved
2025-08-07 13:29 tibor.pacalat Resolution open => fixed