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 ($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.

View File

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

View File

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