View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16895 | Bug reports | Other | public | 2020-12-10 15:25 | 2020-12-28 10:42 |
Reporter | gabrieljenik | Assigned To | gabrieljenik | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.3.30 | ||||
Summary | 16895: Question radio button with Question Theme "Bootstrap Buttons" does not keep value in "Other" field | ||||
Description | Question radio button with Question Theme "Bootstrap Buttons" does not keep value in "Other" field and does not show "Other field" going to the previous page of the survey This is for v4. | ||||
Steps To Reproduce |
See attached survey. | ||||
Additional Information | That doesn't happen without the theme "Bootstrap Button" | ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 4.3.30 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Any | ||||
Database type & version | MySQL | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7.2.33 | ||||
related to | 16849 | closed | gabrieljenik | Question radio button with Question Theme "Bootstrap Buttons" does not keep value in "Other" field |
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=30806 |
|
Fixed in Release 4.3.32+201221 |
|
LimeSurvey: master 1d43694f 2020-12-16 00:08 Committer: GitHub Details Diff |
Fixed issue 16895: Question radio button with Question Theme "Bootstrap Buttons" does not keep value in "Other" field (#1683) There were two problems: 1) The 'other' answer value from the DB was never used by the theme to feed it into the screen ($answer_other was not used in answer_row_other.twig). 2) The show/hide code is part of the radio's 'change' event, which was only trigger on an actual change, not initially to setup the screen An additional problem is that, in this theme, the 'other' input control is outside the scope of answer_row_other.twig, so the value cannot be directly assigned when rendering. Instead, a hidden input had to be added to hold the value until it can be transfered by javascript to the actual control. At last, as the doBootstrapRadio is called multiple times (once per question in the screen), the event assignment happens multiple times as well. |
Affected Issues 16895 |
|
mod - themes/question/bootstrap_buttons/survey/questions/answer/listradio/assets/scripts/bootstrapbuttons.js | Diff File | ||
mod - themes/question/bootstrap_buttons/survey/questions/answer/listradio/rows/answer_row_other.twig | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-12-10 15:25 | gabrieljenik | New Issue | |
2020-12-10 15:25 | gabrieljenik | Issue generated from: 16849 | |
2020-12-10 15:25 | gabrieljenik | Relationship added | related to 16849 |
2020-12-10 15:35 | gabrieljenik | Note Added: 60914 | |
2020-12-15 23:08 | gabrieljenik | Changeset attached | => LimeSurvey master 1d43694f |
2020-12-15 23:08 | gabrieljenik | Note Added: 60972 | |
2020-12-15 23:08 | gabrieljenik | Assigned To | => gabrieljenik |
2020-12-15 23:08 | gabrieljenik | Resolution | open => fixed |
2020-12-28 10:42 | lime_release_bot | Note Added: 61175 | |
2020-12-28 10:42 | lime_release_bot | Status | new => closed |