From 088287955265330ef2eb2479b507d88574754655 Mon Sep 17 00:00:00 2001 From: Tom Arild Jakobsen Date: Mon, 28 Nov 2016 14:54:33 +0100 Subject: [PATCH] Allow subContentId in group validation. Relates to: #HFP-285 --- h5p.classes.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/h5p.classes.php b/h5p.classes.php index 4d7223b..03d5136 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -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) {