Skip to content

Commit

Permalink
fix: Updates extension to match quiz questions in #220.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi committed Aug 2, 2018
1 parent fc03ec8 commit 68ac12a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function numeric(array $config, \stdClass $event, \stdClass $feedbackvalue, \std
'response' => $feedbackvalue->value,
'completion' => $feedbackvalue->value !== '',
'extensions' => [
'http://learninglocker.net/xapi/moodle/feedback_item_value' => floatval($feedbackvalue->value),
'http://learninglocker.net/xapi/cmi/numeric/response' => floatval($feedbackvalue->value),
],
],
'context' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"response": "3",
"completion": true,
"extensions": {
"http:\/\/learninglocker.net\/xapi\/moodle\/feedback_item_value": 3
"http:\/\/learninglocker.net\/xapi\/cmi\/numeric\/response": 3
}
},
"context": {
Expand Down

0 comments on commit 68ac12a

Please sign in to comment.