View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
19461Bug reportsQuestion themepublic2024-03-06 07:41
Reporterp_teichmann Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version6.4.x 
Summary19461: QuestionTemplate::getQuestionTemplateList() loads question attributes from the database instead of the filesystem
Description

The job of QuestionTemplate is getting information from the filesystem and read infromation regarding the theme.
However currently it is getting the information in QuestionTemplate::getQuestionTemplateList() from the database which is already covered by the QuestionTheme::findQuestionMetaDataForAllTypes().

This can cause issues with attributes that are currently used by a question theme but are not in our global list of allowed attributes in questionHelper::getAttributesDefinitions().

So if we implement the correct loading of QuestionTemplate::getQuestionTemplateList() from the filesystem we would not have to worry about having undefined attributes.

One importing thing that needs to be done before this can be fully integrated is to add the translation strings to the xml files which are currently set through questionHelper::getAttributesDefinitions().

Steps To Reproduce

Steps to reproduce

(Replace this text with detailed step-by-step instructions on how to reproduce the issue)

Expected result

(Write here what you expected to happen)

Actual result

(Write here what happened instead)

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)6.x
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2024-03-06 07:41

developer   ~79738

Bug or development ?

Issue History

Date Modified Username Field Change
2024-03-05 18:57 p_teichmann New Issue
2024-03-06 07:41 DenisChenu Note Added: 79738
2024-03-06 07:41 DenisChenu Bug heat 0 => 2