Allow subContentId in group validation. Relates to: #HFP-285

improved-message-for-library-in-smantics-no-valid
Tom Arild Jakobsen 2016-11-28 14:54:33 +01:00
parent b55c1838a9
commit b4615e01b1
1 changed files with 5 additions and 0 deletions

View File

@ -3063,6 +3063,11 @@ class H5PContentValidator {
}
else {
foreach ($group as $key => &$value) {
// If subContentId is set, keep value
if($key == 'subContentId' && $value == TRUE){
continue;
}
// Find semantics for name=$key
$found = FALSE;
foreach ($semantics->fields as $field) {