View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20421 | Bug reports | Survey editing | public | 2026-02-09 18:46 | 2026-02-11 09:04 |
| Reporter | SESSOU | Assigned To | |||
| Priority | none | Severity | block | ||
| Status | new | Resolution | open | ||
| Product Version | 6.12.x | ||||
| Summary | 20421: Question attributes should be sanitized when you change the question type ... | ||||
| Description | When you change the type of an existing question (by selecting a new question family), the attributes that has been initialy chosen (for the first question type) can override the attributes chosen for the new question type. See example below … | ||||
| Steps To Reproduce | 1 - Create a new question with a 'table' type (type F) Content in the lime_question_attributes table at this moment : 5 - Edit the question and change its type like this : multiple choice bootstrap button (type M) Content in the lime_question_attributes table after this change : The 'random order' (which is a 'table' type display parameter) is still in the database and is used in place of the 'subquestion_order' parameter (which is a 'multiple answer' type display parameter). So, when you change the type of a question, it would be nice to keep the attributes related to the new question type and to delete in the database (table 'lime_question_attributes') the attributes only related to the old question type | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 6.16.5+260127 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | All kind (Safari, Google Chrome, Firefox) | ||||
| Database type & version | Postgresql 15 | ||||
| Server OS (if known) | Debian 12 | ||||
| Webserver software & version (if known) | Apache 2.4 | ||||
| PHP Version | 8.2 | ||||
|
My opinion
The point 7 must be "Be sure that the random order is set" : If question types have the same attribute, they must be the same as the previous question. |
|
|
Hi, I agree with you. The problem here is that the attribute 'random order' remains in the table 'lime_question_attributes' after we change the type of the question (from 'table' to 'multiple choice'). So, it interfers with the attribute 'subquestion_order', which has the same fuction but is not taken into account, even if you try to change the value of the parameter thru the question editing web interface., So, it will be ideal when you change the type of a question to :
I hope that these explanations will help you. Cordially. Olivier L. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-02-09 18:46 | SESSOU | New Issue | |
| 2026-02-10 10:21 | DenisChenu | Note Added: 84200 | |
| 2026-02-10 10:21 | DenisChenu | Bug heat | 0 => 2 |
| 2026-02-11 09:04 | SESSOU | Note Added: 84201 | |
| 2026-02-11 09:04 | SESSOU | Bug heat | 2 => 4 |