View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
19747 | Bug reports | Survey taking | public | 2024-09-12 15:43 | 2024-09-12 16:30 |
Reporter | gabrieljenik | Assigned To | |||
Priority | none | Severity | minor | ||
Status | new | Resolution | open | ||
Product Version | 6.6.x | ||||
Summary | 19747: Sometimes the theme configuration hirearchy loading is not correct | ||||
Description | Sometimes when loading the the theme configuration hirearchy, if a theme configuration is missing for the surveyGroup, the woraround creates chaos. I understand that getInstanceFromSurveyGroup should return an instance of the configuration associated with a survey group, while getInstanceFromTemplateName should return a “generic” instance. When there is no specific configuration for a surveygroup, the code takes what getInstanceFromTemplateName returns (a general instance for the template) and modifies the instance, which is cached. By not making a clone, what it ends up doing is modifying the cached instance, modifying not only for the surveygroup (as intended) but for the instance for the template. So, when you call getInstanceFromTemplateName again, it returns something that is not what is supposed to be returned. | ||||
Steps To Reproduce | Steps to reproduceHard to reproduce. Need to keep on working on it. Expected resultGet a specifc instance for the survey group. Actual resultUpdate the instance used for the base template configuracion | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 6.x | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | Mysql | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 8 | ||||
related to | 19685 | closed | gabrieljenik | php8.3 compatibility - LS Core |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-09-12 15:43 | gabrieljenik | New Issue | |
2024-09-12 15:43 | gabrieljenik | File Added: image.png | |
2024-09-12 15:44 | gabrieljenik | Relationship added | related to 19685 |
2024-09-12 15:44 | gabrieljenik | Note Added: 80997 | |
2024-09-12 15:44 | gabrieljenik | Bug heat | 0 => 2 |
2024-09-12 16:29 | DenisChenu | Relationship added | child of 19632 |
2024-09-12 16:29 | DenisChenu | Relationship deleted | child of 19632 |
2024-09-12 16:30 | DenisChenu | Note Added: 81002 | |
2024-09-12 16:30 | DenisChenu | Bug heat | 2 => 4 |