Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 52e52eb

Browse files
committed
Fix: Log data to answer, instead of act field.
1 parent 1716eba commit 52e52eb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

runestone/clickableArea/js/clickable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,11 @@ export default class ClickableArea extends RunestoneBase {
400400
}
401401

402402
logCurrentAnswer() {
403+
const answer = this.givenIndexArray.join(";");
403404
this.logBookEvent({
404405
event: "clickableArea",
405-
act: this.givenIndexArray.join(";"),
406+
answer: answer,
407+
act: answer,
406408
div_id: this.divid,
407409
correct: this.correct ? "T" : "F",
408410
});

runestone/shortanswer/js/shortanswer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export default class ShortAnswer extends RunestoneBase {
152152
this.logBookEvent({
153153
event: "shortanswer",
154154
act: value,
155+
answer: value,
155156
div_id: this.divid,
156157
});
157158
}

0 commit comments

Comments
 (0)