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

redesign-copyrights
Frode Petterson 2015-05-22 13:29:04 +02:00
commit 9db33dd61b
3 changed files with 7 additions and 4 deletions

View File

@ -2807,6 +2807,10 @@ class H5PContentValidator {
} }
} }
if (!(isset($semantics->optional) && $semantics->optional)) { if (!(isset($semantics->optional) && $semantics->optional)) {
if ($group === NULL) {
// Error no value. Errors aren't printed...
return;
}
foreach ($semantics->fields as $field) { foreach ($semantics->fields as $field) {
if (!(isset($field->optional) && $field->optional)) { if (!(isset($field->optional) && $field->optional)) {
// Check if field is in group. // Check if field is in group.

View File

@ -100,10 +100,10 @@ var H5PDataView = (function ($) {
else { else {
// Update table data // Update table data
self.updateTable(data.rows); self.updateTable(data.rows);
}
// Update pagination widget // Update pagination widget
self.updatePagination(data.num); self.updatePagination(data.num);
}
if (self.loaded !== undefined) { if (self.loaded !== undefined) {
self.loaded(); self.loaded();

View File

@ -889,7 +889,6 @@ H5P.getCopyrights = function (instance, parameters, contentId) {
} }
catch (err) { catch (err) {
// Failed, prevent crashing page. // Failed, prevent crashing page.
H5P.error(err);
} }
} }