HFP-1905 Allow metadata as keyword for subcontent

pull/52/head
Oliver Tacke 2018-03-26 17:44:00 +02:00
parent c589285351
commit b28624ba8e
1 changed files with 1 additions and 1 deletions

View File

@ -3736,7 +3736,7 @@ class H5PContentValidator {
'type' => 'group',
'fields' => $library['semantics'],
), FALSE);
$validKeys = array('library', 'params', 'subContentId');
$validKeys = array('library', 'params', 'subContentId', 'metadata');
if (isset($semantics->extraAttributes)) {
$validKeys = array_merge($validKeys, $semantics->extraAttributes);
}