Skip to content

Commit

Permalink
Merge branch 'release-0.28.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bziondik committed Jan 14, 2022
2 parents a944ec8 + 622ece6 commit 8cd9979
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oat-sa/tao-item-runner-qti",
"version": "0.27.3",
"version": "0.28.0",
"displayName": "TAO Item Runner QTI",
"description": "TAO QTI Item Runner modules",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions src/qtiItem/core/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ var Loader = Class.extend({
if (!(bodyData && typeof bodyData.body === 'string' && typeof bodyData.elements === 'object')) {
throw new Error('wrong bodydata format');
}
//merge attributes when loading element data
const attributes = _.defaults(bodyData.attributes || {}, bodyObject.attributes || {});
bodyObject.setAttributes(attributes);

for (let serial in bodyData.elements) {
const eltData = bodyData.elements[serial];
Expand Down

0 comments on commit 8cd9979

Please sign in to comment.