View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
20748Bug reportsImport/Exportpublic2026-10-01 12:33
ReporterMazi Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version6.17.x 
Summary20748: Survey-specific theme options are not copied when duplicating a survey
Description

When copying a survey, survey-specific theme option changes are not copied to the new survey.
The copied survey uses the same theme, but the customized theme options from the original survey are missing/reset in the copy.

This seems to be caused by the newer survey copy implementation. In older versions, copying a survey internally relied on the survey export/import mechanism. That mechanism explicitly exports and re-imports the survey-specific theme configuration, including the entries from template_configuration and the corresponding theme options.

With the newer CopySurvey service used in LimeSurvey 6.17.x, the survey itself and the selected theme are copied, but there does not appear to be equivalent logic that copies the survey-specific template_configuration entry and its options to the new survey ID. As a result, the copied survey falls back to inherited/default theme settings instead of keeping the customized Theme Options of the source survey.

Steps To Reproduce

How to reproduce:

Create a survey in LimeSurvey 6 (probably 7 is affected as well).
Select the Fruity TwentyThree survey theme.
Open the survey-specific Theme options.
Change one or more options so they differ from the inherited/default values.
Save the theme options.
Copy/duplicate the survey using the standard survey copy function.
Open the Theme options of the copied survey.

Actual result:
The survey-specific theme option changes are not copied to the new survey.

Expected result:
When copying a survey, its survey-specific theme configuration/options should also be copied.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)6.17.13+260728
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMariaDB 10.1.48
Server OS (if known)
Webserver software & version (if known)
PHP Version8.3.33

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2026-09-30 17:10

updater   ~86115

@DenisChenu, can you reproduce the problem using one of your custom themes?

c_schmitz

c_schmitz

2026-09-30 17:18

administrator   ~86116

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

LimeBot

LimeBot

2026-10-01 12:33

administrator   ~86150

Fixed in Release 7.5.0+261001

Related Changesets

LimeSurvey: master b599a776

2026-09-30 17:17

c_schmitz


Details Diff
Fixed issue 20748: Survey-specific theme options are not copied when duplicating a survey Affected Issues
20748
mod - application/models/services/CopySurvey.php Diff File
mod - tests/unit/helpers/CopySurveyTest.php Diff File

Issue History

Date Modified Username Field Change
2026-09-30 17:09 Mazi New Issue
2026-09-30 17:10 Mazi Note Added: 86115
2026-09-30 17:10 Mazi Bug heat 0 => 2
2026-09-30 17:18 c_schmitz Assigned To => c_schmitz
2026-09-30 17:18 c_schmitz Status new => assigned
2026-09-30 17:18 c_schmitz Changeset attached => LimeSurvey master b599a776
2026-09-30 17:18 c_schmitz Note Added: 86116
2026-09-30 17:18 c_schmitz Status assigned => resolved
2026-09-30 17:18 c_schmitz Resolution open => fixed
2026-09-30 17:18 c_schmitz Bug heat 2 => 4
2026-09-30 17:18 c_schmitz Severity block => minor
2026-10-01 12:33 LimeBot Note Added: 86150
2026-10-01 12:33 LimeBot Status resolved => closed
2026-10-01 12:33 LimeBot Bug heat 4 => 6