View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
17763Bug reportsUser / Groups / Rolespublic2026-10-21 15:20
ReporterMMAA68 Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version3.25.20 
Summary17763: after renaming theme, permission are lost for your users to this theme and then, impossible to give permission to users to it
Description

I renamed a theme eight months ago.
Yesterday, my colleague tried to give permissions to this theme to users. She checked box corresponding to the theme and saved.
When she reviewed user's permissions, box was unchecked for most of users.
She tries repeatedly but without success.
A constatation is that concerned users are those that were created before renaming there not those created after where the box is well checked.

Steps To Reproduce

Steps to reproduce

1/ create a theme named "test" (respecting lowercase !). It could a copy of another theme
2/ give permission to this theme to a user
3/ rename theme "test" as "Test" (take care to the case !).
4/ return to user and look at permission to the theme : the theme is listed (with new name) but box is unchecked.
5/ check the box and save
6/ return to user and look at permission to the theme : the box is unchecked.
7/ retries give same result.

Expected result

1/ after renaming the theme, I thought that permission was kept for users to this theme (box checked)
2/ eventually, if I had to check box and save that this operation was not be lost.

Actual result

1/ I can spend hours to check box to give permission to the theme for a user and save when I return to permission box is always unchecked

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)3.25.21+210407
I will donate to the project if issue is resolvedNo
BrowserEdge and chrome
Database type & versionMariaDB 10.1.44-MariaDB-0.ubuntu0.18.04.1
Server OS (if known)Ubuntu 18.04.1
Webserver software & version (if known)apache2
PHP Version7.2
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-10-21 15:20

administrator   ~86672

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

Related Changesets

LimeSurvey: master 5401f878

2026-10-21 15:19

c_schmitz


Details Diff
Fixed issue 17763: Users lost their permission for a theme after it was renamed
Dev Theme permissions are now moved to the new name; leftover permissions with the new name are dropped
Affected Issues
17763
mod - application/models/Permission.php Diff File
mod - application/models/Template.php Diff File
add - tests/unit/models/PermissionRenameThemeTest.php Diff File

Issue History

Date Modified Username Field Change
2021-11-25 15:22 MMAA68 New Issue
2021-11-26 09:30 galads Assigned To => galads
2021-11-26 09:30 galads Status new => acknowledged
2026-10-21 15:20 c_schmitz Changeset attached => LimeSurvey master 5401f878
2026-10-21 15:20 c_schmitz Note Added: 86672
2026-10-21 15:20 c_schmitz Assigned To galads => c_schmitz
2026-10-21 15:20 c_schmitz Status acknowledged => resolved
2026-10-21 15:20 c_schmitz Resolution open => fixed
2026-10-21 15:20 c_schmitz Bug heat 0 => 2