View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05258 | Bug reports | Survey taking | public | 2011-06-08 13:04 | 2011-06-16 14:23 |
| Reporter | Assigned To | ||||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.91+ | ||||
| Summary | 05258: Boilerplate questions show up as "unaswered" in the question index. | ||||
| Description | Enable questionnaire navigation/jumping in either group or question-by-question mode. Add a new boilerplate question anywhere. The question/group shows up as unaswered in the index. | ||||
| Additional Information | Patch attached. | ||||
| Tags | No tags attached. | ||||
| Attached Files | patch.diff (1,059 bytes)
Index: common_functions.php
===================================================================
--- common_functions.php (revision 10217)
+++ common_functions.php (working copy)
@@ -8229,8 +8258,13 @@
*/
function bCheckQuestionForAnswer($q, $aFieldnamesInfoInv)
{
- if (@$_SESSION['fieldmap'][$aFieldnamesInfoInv[$q][0]]['type'] == 'M' || @$_SESSION['fieldmap'][$aFieldnamesInfoInv[$q][0]]['type'] == 'P' || @$_SESSION['fieldmap'][$aFieldnamesInfoInv[$q][0]]['type'] == 'O')
+ if (@$_SESSION['fieldmap'][$aFieldnamesInfoInv[$q][0]]['type'] == 'X')
{
+ // boilerplate have no answers
+ return true;
+ }
+ else if (@$_SESSION['fieldmap'][$aFieldnamesInfoInv[$q][0]]['type'] == 'M' || @$_SESSION['fieldmap'][$aFieldnamesInfoInv[$q][0]]['type'] == 'P' || @$_SESSION['fieldmap'][$aFieldnamesInfoInv[$q][0]]['type'] == 'O')
+ {
// multiple choice and list with comments question types - just one answer is required and comments are not required
$bAnsw = false;
foreach($aFieldnamesInfoInv[$q] as $sField)
| ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 10217 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | - | ||||
| Server OS (if known) | - | ||||
| Webserver software & version (if known) | - | ||||
| PHP Version | - | ||||
| Git branch / Pull Request URL | |||||
|
Just commit :-) No need to ask for fixes ;) |
|
|
Fixed in 10235. Sorry, I wasn't waiting for an answer, just track the bug and commit as soon as I got back from lunch ;) |
|
|
1.91+ version released |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-06-08 13:04 |
|
New Issue | |
| 2011-06-08 13:04 |
|
Status | new => assigned |
| 2011-06-08 13:04 |
|
Assigned To | => user9586 |
| 2011-06-08 13:04 |
|
File Added: patch.diff | |
| 2011-06-08 13:31 | c_schmitz | Note Added: 15367 | |
| 2011-06-08 15:13 |
|
Note Added: 15383 | |
| 2011-06-08 15:13 |
|
Status | assigned => resolved |
| 2011-06-08 15:13 |
|
Resolution | open => fixed |
| 2011-06-16 14:23 | c_schmitz | Note Added: 15464 | |
| 2011-06-16 14:23 | c_schmitz | Status | resolved => closed |