Skip to content

Commit

Permalink
fixed 'assessment' node 'skipped' column of response table being not …
Browse files Browse the repository at this point in the history
…optional
  • Loading branch information
przemyslaw_lis committed Feb 9, 2024
1 parent 67ccafa commit a04f609
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#### Fixes

* SAML logout process now includes nameId
* fixed *assessment* node *skipped* column of response table being not optional

#### Docker

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3969,7 +3969,7 @@ collection:
title: 'next item selector'
type: 0
posX: 16127
posY: 15096
posY: 15095
flowTest: 7
sourceTest: 3
sourceTestName: _eval
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ getSafePastResponses = function(nextItems, nextItemsIndices) {
return(pastResponses)
}

skippedColumn = responseBank$columns$skipped
if(is.null(skippedColumn) || is.na(skippedColumn) || skippedColumn == "") {
skippedColumn = "0"
}

sql = "
SELECT
{{itemIdColumn}} AS item_id,
Expand All @@ -115,7 +120,7 @@ WHERE
pastResponses = concerto.table.query(sql, list(
table=responseBank$table,
responseColumn=responseBank$columns$response,
skippedColumn=responseBank$columns$skipped,
skippedColumn=skippedColumn,
sessionIdColumn=responseBank$columns$session_id,
sessionId=getSessionId(session),
itemIdColumn=responseBank$columns$item_id,
Expand Down

0 comments on commit a04f609

Please sign in to comment.