Remove incompatible code
parent
866f94ea47
commit
bea974e597
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue