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)