Merge branch 'release' of github.com:h5p/h5p-php-library into release

semi-fullscreen
Frode Petterson 2018-11-02 10:15:14 +01:00
commit c8ddb305ab
1 changed files with 7 additions and 1 deletions

View File

@ -3402,8 +3402,14 @@ class H5PContentValidator {
*/ */
public function validateMetadata($metadata) { public function validateMetadata($metadata) {
$semantics = $this->getMetadataSemantics(); $semantics = $this->getMetadataSemantics();
$group = (object)$metadata; $group = (object)$metadata;
// Stop complaining about "invalid selected option in select" for
// old content without license chosen.
if (!isset($group->license)) {
$group->license = 'U';
}
$this->validateGroup($group, (object) array( $this->validateGroup($group, (object) array(
'type' => 'group', 'type' => 'group',
'fields' => $semantics, 'fields' => $semantics,