You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commenting out the if solves the error and everything is working as intended.
Here my patch:
--- /dev/null+++ ../h5p.classes.php@@ -4034,9 +4034,9 @@
foreach ($semantics->fields as $field) {
if (!(isset($field->optional) && $field->optional)) {
// Check if field is in group.
- if (! property_exists($group, $field->name)) {+ //if (! property_exists($group, $field->name)) {
//$this->h5pF->setErrorMessage($this->h5pF->t('No value given for mandatory field ' . $field->name));
- }+ //}
}
}
}
The text was updated successfully, but these errors were encountered:
While trying to get the integration data for an InteractiveVideo content (with one Single Choice Set) the following error occurs:
While investing further into this error I found that an unused if statement is causing this. https://github.com/h5p/h5p-php-library/blob/1.24.3/h5p.classes.php#L4037
Commenting out the if solves the error and everything is working as intended.
Here my patch:
The text was updated successfully, but these errors were encountered: