View Issue Details

This issue affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20830Bug reportsQuestion editorpublic2026-11-07 19:44
Reporterc_schmitz Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version7.9.x 
Summary20830: New editor: after changing the question type, deleted answer options are still shown until reload
Description

When you change the type of a question in the new editor, the server deletes all answer options of the question (QuestionService::updateQuestionData() calls removeAnswersAndDependentConditions() on every type change), even between types that both use answer options, e.g. List (radio) -> List (dropdown).

The new editor does not reflect this: the question card still shows the old answer options after the type change. They only disappear after reloading the page. The user believes the answer options were kept, and any further edits to them are made on options that no longer exist.

Steps To Reproduce
  1. Open a survey in the new editor.
  2. Add a List (radio) question with some answer options (A1, A2, A3).
  3. In Question settings, change Type to List (dropdown).
  4. The card still shows A1, A2, A3.
  5. Reload the page: the answer options are gone.
Additional Information

Expected: either keep the answer options when the new type also uses answer options, or remove them from the editor immediately (ideally with a warning before the type change that answer options and conditions on them will be deleted).

Found while documenting the question type change for the manual.

TagsNo tags attached.
Bug heat0
Complete LimeSurvey version number (& build)7.9.1
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant
Git branch / Pull Request URLN/A

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-11-07 19:44 c_schmitz New Issue