View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
19572Bug reportsSurvey takingpublic2026-10-22 05:11
ReporterTonisOrmisson Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version6.5.x 
Summary19572: beforeSurveyPage event is not changing the display template
Description

Attaching another template (different from the one attached to survey by default) via beforeSurveyPage event does not change the displayed survey template.

The event has only possible output defined by the manual:

The following information can be set in the event:
template The name of the template to use

Steps To Reproduce

Steps to reproduce

  1. Use some plugin to subscribe to beforeSurveyPage event
  2. Change the event attribute 'template' to some other existing template name (different from the one used in survey)
  3. open a survey page

Expected result

Survey is displayed with the template defined via plugin

Actual result

Survey is displayed with the template defined via survey settings (ie: plugin settinig has no effect)

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)6.5.9
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql
Server OS (if known)
Webserver software & version (if known)
PHP Version8.2
Git branch / Pull Request URLN/A

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-10-22 05:11

administrator   ~86687

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

Related Changesets

LimeSurvey: master 7cf74928

2026-10-22 05:11

c_schmitz


Details Diff
Fixed issue 19572: A survey theme set by a plugin in the beforeSurveyPage event was ignored
Dev The event value went to the unused templatedir key; templatereplace() and the survey-level theme config parent lookup also fell back to the survey's own theme
Affected Issues
19572
mod - application/controllers/UploaderController.php Diff File
mod - application/controllers/survey/SurveyIndex.php Diff File
mod - application/helpers/replacements_helper.php Diff File
mod - application/models/TemplateConfiguration.php Diff File
mod - tests/unit/models/TemplateConfigurationTest.php Diff File

Issue History

Date Modified Username Field Change
2024-05-23 14:40 TonisOrmisson New Issue
2024-05-23 14:40 TonisOrmisson File Added: image.png
2024-05-23 14:40 TonisOrmisson File Added: image-2.png
2024-05-23 16:13 TonisOrmisson File Deleted: image.png
2024-05-23 16:13 TonisOrmisson File Deleted: image-2.png
2026-10-22 05:11 c_schmitz Changeset attached => LimeSurvey master 7cf74928
2026-10-22 05:11 c_schmitz Note Added: 86687
2026-10-22 05:11 c_schmitz Assigned To => c_schmitz
2026-10-22 05:11 c_schmitz Status new => resolved
2026-10-22 05:11 c_schmitz Resolution open => fixed
2026-10-22 05:12 guest Bug heat 0 => 2