View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05258Bug reportsSurvey takingpublic2011-06-16 14:23
Reporteruser9586Assigned Touser9586 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91+ 
Summary05258: 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.

TagsNo 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)
patch.diff (1,059 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)10217
I will donate to the project if issue is resolvedNo
Browser
Database type & version-
Server OS (if known)-
Webserver software & version (if known)-
PHP Version-
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-06-08 13:31

administrator   ~15367

Just commit :-) No need to ask for fixes ;)

user9586

2011-06-08 15:13

  ~15383

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 ;)

c_schmitz

c_schmitz

2011-06-16 14:23

administrator   ~15464

1.91+ version released

Issue History

Date Modified Username Field Change
2011-06-08 13:04 user9586 New Issue
2011-06-08 13:04 user9586 Status new => assigned
2011-06-08 13:04 user9586 Assigned To => user9586
2011-06-08 13:04 user9586 File Added: patch.diff
2011-06-08 13:31 c_schmitz Note Added: 15367
2011-06-08 15:13 user9586 Note Added: 15383
2011-06-08 15:13 user9586 Status assigned => resolved
2011-06-08 15:13 user9586 Resolution open => fixed
2011-06-16 14:23 c_schmitz Note Added: 15464
2011-06-16 14:23 c_schmitz Status resolved => closed