View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20337 | Bug reports | User / Groups / Roles | public | 2025-11-05 14:38 | 2026-03-19 14:57 |
| Reporter | Freda | Assigned To | gabrieljenik | ||
| Priority | none | Severity | block | ||
| Status | assigned | Resolution | fixed | ||
| Summary | 20337: Cannot add a User Group to Survey Permissions unless at least one User is already added | ||||
| Description | When managing survey permissions, it is currently not possible to add a User Group to a survey. | ||||
| Steps To Reproduce | Steps to reproduceSteps to Reproduce: Create a User Group and ensure it contains one or more users. Open any existing survey. Go to Survey → Permissions → Add user group. Select the group and attempt to add it. Expected resultUser Groups should be assignable to surveys directly Actual resultNothing happens | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 12 | ||||
| Complete LimeSurvey version number (& build) | . | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | . | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | . | ||||
| related to | 20364 | closed | tibor.pacalat | The “Add group users” button in the Survey Permissions menu does not work with firefox |
| related to | 20451 | assigned | tibor.pacalat | Survey permissions panel no more appears after an update to 6.16.12 |
|
The UI might be counterintuitive, but I think this is more of a feature request than a bug. You might think it adds the group itself, but it actually adds the group's users (those currently in the group). In fact, the button says "Add group users," not "Add user group." In other words, if you add more users to the group later, they won't be added to the survey. So, it doesn't make sense for empty groups to appear there. |
|
|
I don't see any PR, and I think this is an issue. I have a group with 2 users, and when I select the group and click on "Add group users" I expect these users to be added. Not that I add one user from this group first, and then I am able to add the group. |
|
|
https://github.com/LimeSurvey/LimeSurvey/pull/4710 At last this was a JS issue, related to pjax. surveypermissions.js was not getting loaded at the first time. When adding a user (which think submits a form without needing the JS), the page reloads directly (without pjax) and then it starts working because the JS does gets loaded without pjax. |
|
|
I think this kind of errors are not the first time they happens.
So devs are forced to decide if they want to add it in the head or end. |
|
:+1: |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=39343 |
|
|
Fixed in Release 6.16.9+260217 |
|
|
Also posting here that the fix causes another issue: https://github.com/LimeSurvey/LimeSurvey/pull/4710#issuecomment-4083814102 It seems that when initially visiting another route and navigating to the Survey permissions view indirectly via the sidemenu, for example, the following error is thrown, also breaking form submission logic on other views thereafter: Reverting the change fixes it. I believe this is due to the way packages are loaded into a view, a similar issue to this PR actually. Visiting the Survey permissiosn route directly works as expected, no error given. |
|
|
@gabrieljenik can you take a look at this please? |
|
|
LimeSurvey: master d54b9bcf 2026-02-09 19:34 Gabriel Jenik Committer: GitHub Details Diff |
Fixed issue 20337: Cannot add a User Group to Survey Permissions unless at least one User is already added (04710) Co-authored-by: lapiudevgit <devgit@lapiu.biz> |
Affected Issues 20337 |
|
| mod - application/controllers/SurveyPermissionsController.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-11-05 14:38 | Freda | New Issue | |
| 2025-11-05 14:38 | Freda | File Added: Screenshot 2025-11-05 at 11.40.16.png | |
| 2025-11-05 14:38 | Freda | Assigned To | => gabrieljenik |
| 2025-11-05 14:38 | Freda | Status | new => assigned |
| 2025-11-10 15:33 | gabrieljenik | Note Added: 83734 | |
| 2025-11-10 15:33 | gabrieljenik | File Added: image.png | |
| 2025-11-10 15:33 | gabrieljenik | Bug heat | 0 => 2 |
| 2025-11-10 15:34 | gabrieljenik | Assigned To | gabrieljenik => tibor.pacalat |
| 2025-11-10 15:34 | gabrieljenik | Status | assigned => ready for testing |
| 2025-11-19 15:10 | tibor.pacalat | Note Added: 83846 | |
| 2025-11-19 15:10 | tibor.pacalat | Bug heat | 2 => 4 |
| 2025-11-19 15:10 | tibor.pacalat | Assigned To | tibor.pacalat => gabrieljenik |
| 2025-11-19 15:10 | tibor.pacalat | Status | ready for testing => assigned |
| 2026-02-03 17:45 | tibor.pacalat | Relationship added | related to 20364 |
| 2026-02-09 14:46 | gabrieljenik | Assigned To | gabrieljenik => DenisChenu |
| 2026-02-09 14:46 | gabrieljenik | Status | assigned => ready for code review |
| 2026-02-09 14:46 | gabrieljenik | Note Added: 84195 | |
| 2026-02-09 14:48 | gabrieljenik | Note Added: 84196 | |
| 2026-02-09 15:24 | DenisChenu | Note Added: 84197 | |
| 2026-02-09 15:24 | DenisChenu | Bug heat | 4 => 6 |
| 2026-02-09 15:25 | DenisChenu | Assigned To | DenisChenu => tibor.pacalat |
| 2026-02-09 15:25 | DenisChenu | Status | ready for code review => ready for testing |
| 2026-02-09 19:34 | Changeset attached | => LimeSurvey master d54b9bcf | |
| 2026-02-09 19:34 | guest | Note Added: 84199 | |
| 2026-02-09 19:34 | guest | Bug heat | 6 => 8 |
| 2026-02-09 19:34 | tibor.pacalat | Status | ready for testing => resolved |
| 2026-02-09 19:34 | tibor.pacalat | Resolution | open => fixed |
| 2026-02-17 15:20 | LimeBot | Note Added: 84239 | |
| 2026-02-17 15:20 | LimeBot | Status | resolved => closed |
| 2026-02-17 15:20 | LimeBot | Bug heat | 8 => 10 |
| 2026-03-19 08:05 | riku | Note Added: 84480 | |
| 2026-03-19 08:05 | riku | Bug heat | 10 => 12 |
| 2026-03-19 14:56 | tibor.pacalat | Note Added: 84489 | |
| 2026-03-19 14:56 | tibor.pacalat | Assigned To | tibor.pacalat => gabrieljenik |
| 2026-03-19 14:56 | tibor.pacalat | Status | closed => assigned |
| 2026-03-19 14:57 | tibor.pacalat | Relationship added | related to 20451 |