View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|15932||Development||[All Projects] Survey editing||public||2020-02-28 13:22||2020-02-28 23:21|
|Target Version||Fixed in Version|
|Summary||15932: Question Editor does not load data for custom attributes of a question theme|
I wrote an own question theme https://github.com/florianheller/LimeSurvey_SVG_Selection that adds an additional attribute and a custom view to the multiplechoice question type.
In the question editor, the custom attribute field is correctly loaded in the advanced settings. Once I enter something in that field and click save, the value is correctly stored in the database, but on while reloading the data, the field is set back to the default value/emptied. At the same time, the custom view is also not loaded.
As discussed in https://www.limesurvey.org/forum/development/120359-developing-a-question-theme-issues-with-saving-and-rendering, this only affects part of the LS installations as some don't have that problem.
|Steps To Reproduce|
The value is gone and the question preview does not use the correct rendering template (it uses the multiplechoice one, not the one from the theme's answer.twig) .
|Tags||No tags attached.|
svgSelection.zip (316,121 bytes)
limesurvey_survey_426395.lss (22,054 bytes)
For my screencast
So the aFormElementOptions differ (some options are (not) arrays). Maybe this helps to track down the issue.