View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
11702 | Bug reports | Survey taking | public | 2016-09-22 10:24 | 2016-11-11 13:18 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.52.x | ||||
Fixed in Version | 2.55.x | ||||
Summary | 11702: Dropdown question : 2 'no answer' if value selected is 0 | ||||
Description | We can see, in some situation in dropdown question 2 no answer value : one with "Please choose ..." one with "No answer" | ||||
Steps To Reproduce | Import this lss
| ||||
Additional Information | We test only !$SESSION['survey'.Yii::app()->getConfig('surveyID')][$ia[1]] Then, if 0 return true. OIn fact is true for whole answer , we must test exactly: $SESSION['survey'.Yii::app()->getConfig('surveyID')][$ia[1]]!== null && $SESSION['survey'.Yii::app()->getConfig('surveyID')][$ia[1]]!== "" Because : Maybe the alternative can be (for dropdown) Show "Please choose .." if it's null (not set) OR ==="" and mandatory | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 20160922 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | not relevant | ||||
Database type & version | not relevant | ||||
Server OS (if known) | not relevant | ||||
Webserver software & version (if known) | not relevant | ||||
PHP Version | not relevant | ||||
related to | 11700 | closed | DenisChenu | Mandatory array (dropdown) is not mandatory |
PS : it's better if the "Please choose ..." option must NEVER have "selected" tag because it was the first : then is selected by default. Cleaner :) |
|
for 3.0 ? |
|
Fix committed to answers_html branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=21032 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=21033 |
|
Version 2.55.3 released |
|
LimeSurvey: answers_html a027f11a 2016-10-15 18:00 Details Diff |
Fixed issue 11702: Dropdown question : 2 'no answer' if value selected is 0 |
Affected Issues 11702 |
|
mod - application/helpers/qanda_helper.php | Diff File | ||
mod - application/views/survey/questions/list_dropdown/answer.php | Diff File | ||
LimeSurvey: master 646ecdac 2016-10-15 18:07 Details Diff |
Fixed issue 11702: Dropdown question : 2 'no answer' if value selected is 0 # Conflicts: # application/views/survey/questions/list_dropdown/answer.php |
Affected Issues 11702 |
|
mod - application/helpers/qanda_helper.php | Diff File | ||
mod - application/views/survey/questions/list_dropdown/answer.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-09-22 10:24 | DenisChenu | New Issue | |
2016-09-22 10:25 | DenisChenu | File Added: limesurvey_survey_2noanswer.lss | |
2016-09-22 10:26 | DenisChenu | Note Added: 40914 | |
2016-09-22 10:27 | DenisChenu | Relationship added | related to 11700 |
2016-10-06 12:55 | c_schmitz | Assigned To | => DenisChenu |
2016-10-06 12:55 | c_schmitz | Status | new => assigned |
2016-10-06 13:05 | DenisChenu | Note Added: 41169 | |
2016-10-15 16:00 | DenisChenu | Changeset attached | => LimeSurvey answers_html a027f11a |
2016-10-15 16:00 | DenisChenu | Note Added: 41376 | |
2016-10-15 16:00 | DenisChenu | Resolution | open => fixed |
2016-10-15 16:07 | DenisChenu | Changeset attached | => LimeSurvey master 646ecdac |
2016-10-15 16:07 | DenisChenu | Note Added: 41377 | |
2016-10-15 16:15 | DenisChenu | Status | assigned => resolved |
2016-10-15 16:15 | DenisChenu | Fixed in Version | => 2.55.x |
2016-11-11 13:18 | c_schmitz | Note Added: 41860 | |
2016-11-11 13:18 | c_schmitz | Status | resolved => closed |