Allow subContentId in group validation. Relates to: #HFP-285
parent
426f51caa0
commit
0882879552
|
@ -3063,6 +3063,11 @@ class H5PContentValidator {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach ($group as $key => &$value) {
|
foreach ($group as $key => &$value) {
|
||||||
|
// If subContentId is set, keep value
|
||||||
|
if($key == 'subContentId' && $value == TRUE){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Find semantics for name=$key
|
// Find semantics for name=$key
|
||||||
$found = FALSE;
|
$found = FALSE;
|
||||||
foreach ($semantics->fields as $field) {
|
foreach ($semantics->fields as $field) {
|
||||||
|
|
Loading…
Reference in New Issue