View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18146 | Bug reports | Survey editing | public | 2022-05-24 14:41 | 2022-07-05 12:27 |
Reporter | Mazi | Assigned To | DenisChenu | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.3.x | ||||
Fixed in Version | 5.3.x | ||||
Summary | 18146: Using "other" as subquestion code at array questions leads to saving error | ||||
Description | When trying to use "other" as subquestion code at an array question I get the below error message. The error message is misleading though: -> There simply is no "other" option for array questions. So to make array filter work with e.g. a multi choice question with "other" field, it would be great if we could accept "other" as subquestion code for arrays. | ||||
Steps To Reproduce | Steps to reproduceCreate an array question and use "other" as subquestion code. Expected resultAccept "other" as valid code. Actual resultMisleading error message is shown about the "other" free text option which das not exist for this question type. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 5.3.13 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | MariaDB 10.1.48 | ||||
Server OS (if known) | Ubuntu 18 | ||||
Webserver software & version (if known) | Apache 2.0 | ||||
PHP Version | 7.4 | ||||
Seems parent question still have other == 'Y' You can try to save as array before try again ? |
|
Hmm, we have switched this question from a single choice question into an array questions. Could this be some kind of left-over? |
|
Surely a single choice with other … But : i think other='N' must be resetted when you save Maybe you can check with 3.X
Then : dev can check how it's done in 3.X |
|
At LS3 the error does NOT show up. I did the steps you described and could use "other" there. |
|
Thank you ! |
|
Pull request : https://github.com/LimeSurvey/LimeSurvey/pull/2443 |
|
Improved pull request : https://github.com/LimeSurvey/LimeSurvey/pull/2443 |
|
Strange. I wasn't able to reproduce the issue on latest master (no patch applied). |
|
You must Create a single choice Other == 'Y' Other are not resetted if question type didn't allow other |
|
Tested OK. Haven't done regression testing. |
|
I don't understand what you want it in DEV, there are no major recoding here. Just create some var in place of fixed test Fixed test :
Moving to a clean function And add this rule :
Already say : i prefer a good complete fix than create 4 bugs for the same file part … |
|
First of all, we had problems tying to reproduce it. Also, the PR is not just 2 blocks of changes, you are updating the definition for every question, re organizing how the title validations is done for all questions, .... Nevertheless the test is only a unit test about this fix. At last as per "Already say : i prefer a good complete fix than create 4 bugs for the same file part …", I don't agree. |
|
See : |
|
Well.. sometimes it is OK if we disagree :) |
|
You have some linefeed too , and moving
before if (!$this->isNewRecord) { There are a related issue |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33613 |
|
Fixed in Release 5.3.23+220705 |
|
LimeSurvey: master 69a9d438 2022-07-01 16:37 Committer: GitHub Details Diff |
Fixed issue 18146: Unable to use "other" as subquestion code (#2443) |
Affected Issues 18146 |
|
mod - application/controllers/QuestionAdministrationController.php | Diff File | ||
mod - application/models/Question.php | Diff File | ||
mod - application/models/QuestionTheme.php | Diff File | ||
mod - application/models/QuestionType.php | Diff File | ||
mod - application/views/survey/questions/answer/list_dropdown/config.xml | Diff File | ||
mod - application/views/survey/questions/answer/listradio/config.xml | Diff File | ||
mod - application/views/survey/questions/answer/multiplechoice/config.xml | Diff File | ||
mod - application/views/survey/questions/answer/multiplechoice_with_comments/config.xml | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-05-24 14:41 | Mazi | New Issue | |
2022-05-24 14:41 | Mazi | File Added: image.png | |
2022-05-24 14:56 | DenisChenu | Note Added: 69998 | |
2022-05-24 14:56 | DenisChenu | Bug heat | 0 => 2 |
2022-05-24 14:59 | Mazi | Note Added: 69999 | |
2022-05-24 14:59 | Mazi | Bug heat | 2 => 4 |
2022-05-24 15:03 | DenisChenu | Note Added: 70000 | |
2022-05-24 15:04 | DenisChenu | Note Edited: 70000 | |
2022-05-24 15:07 | Mazi | Note Added: 70001 | |
2022-05-24 15:07 | Mazi | File Added: image-2.png | |
2022-05-24 15:18 | DenisChenu | Note Added: 70003 | |
2022-05-24 15:18 | DenisChenu | Assigned To | => DenisChenu |
2022-05-24 15:18 | DenisChenu | Status | new => assigned |
2022-05-26 19:39 | DenisChenu | Note Added: 70061 | |
2022-05-26 19:39 | DenisChenu | Assigned To | DenisChenu => |
2022-05-26 19:39 | DenisChenu | Status | assigned => ready for testing |
2022-05-30 11:54 | DenisChenu | Note Added: 70097 | |
2022-06-03 22:57 | gabrieljenik | Assigned To | => gabrieljenik |
2022-06-03 22:57 | gabrieljenik | Status | ready for testing => in testing |
2022-06-09 23:35 | gabrieljenik | Note Added: 70337 | |
2022-06-09 23:35 | gabrieljenik | File Added: image-3.png | |
2022-06-09 23:35 | gabrieljenik | Bug heat | 4 => 6 |
2022-06-09 23:35 | gabrieljenik | Status | in testing => feedback |
2022-06-10 08:22 | DenisChenu | Note Added: 70340 | |
2022-06-10 08:22 | DenisChenu | File Added: Capture d’écran du 2022-06-10 08-20-58.png | |
2022-06-27 02:25 | gabrieljenik | Status | feedback => ready for merge |
2022-06-27 02:25 | gabrieljenik | Note Added: 70543 | |
2022-06-27 10:09 | DenisChenu | Note Added: 70547 | |
2022-06-27 13:45 | gabrieljenik | Note Added: 70553 | |
2022-06-27 15:01 | DenisChenu | Note Added: 70560 | |
2022-06-27 15:05 | gabrieljenik | Note Added: 70561 | |
2022-06-27 15:05 | gabrieljenik | Note Edited: 70561 | |
2022-06-27 15:34 | DenisChenu | Note Added: 70565 | |
2022-07-01 14:52 | DenisChenu | Changeset attached | => LimeSurvey master 69a9d438 |
2022-07-01 14:52 | DenisChenu | Note Added: 70671 | |
2022-07-01 14:52 | DenisChenu | Assigned To | gabrieljenik => DenisChenu |
2022-07-01 14:52 | DenisChenu | Resolution | open => fixed |
2022-07-01 16:35 | DenisChenu | Status | ready for merge => resolved |
2022-07-01 16:35 | DenisChenu | Fixed in Version | => 5.3.x |
2022-07-05 12:27 | LimeBot | Note Added: 70709 | |
2022-07-05 12:27 | LimeBot | Status | resolved => closed |
2022-07-05 12:27 | LimeBot | Bug heat | 6 => 8 |