Skip to content

Commit

Permalink
Fixed issue #15892: "List with comment" appears as unanswered in ques…
Browse files Browse the repository at this point in the history
…tion index if comment is not given
  • Loading branch information
febsn committed Apr 7, 2021
1 parent 83668ed commit 5cb7d0c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion application/helpers/expressions/em_manager_helper.php
Expand Up @@ -6234,7 +6234,14 @@ function ($sqRankAnwsers) {
}
// what about optional vs. mandatory comment and 'other' fields?
break;

case Question::QT_O_LIST_WITH_COMMENT:
foreach ($unansweredSQs as $sq) {
if (!preg_match("/comment$/", $sq)) {
$anyUnanswered = true;
break;
}
}
break;
case Question::QT_COLON_ARRAY_MULTI_FLEX_NUMBERS:
$anyUnanswered = false;
$qattr = isset($LEM->qattr[$qid]) ? $LEM->qattr[$qid] : array();
Expand Down

0 comments on commit 5cb7d0c

Please sign in to comment.