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

pull/27/head
Tom Arild Jakobsen 2016-11-28 14:54:33 +01:00
parent 426f51caa0
commit 0882879552
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) {