Remove incompatible code

pull/76/head
Paal Joergensen 2019-12-17 09:55:54 +01:00
parent 866f94ea47
commit bea974e597
1 changed files with 0 additions and 14 deletions

View File

@ -4036,20 +4036,6 @@ class H5PContentValidator {
} }
} }
} }
if (!(isset($semantics->optional) && $semantics->optional)) {
if ($group === NULL) {
// Error no value. Errors aren't printed...
return;
}
foreach ($semantics->fields as $field) {
if (!(isset($field->optional) && $field->optional)) {
// Check if field is in group.
if (! property_exists($group, $field->name)) {
//$this->h5pF->setErrorMessage($this->h5pF->t('No value given for mandatory field ' . $field->name));
}
}
}
}
} }
/** /**