metadataSettings returned as JSON, not string

HFP-2095-Fix-table-styling
Paal Joergensen 2018-09-26 10:30:50 +02:00
parent 7762f903c8
commit e75745f0db
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,9 @@ class H5PDevelopment {
// Save/update library.
$this->h5pF->saveLibraryData($library, $library['libraryId'] === FALSE);
// Need to decode it again, since it is served from here.
$library['metadataSettings'] = json_decode($library['metadataSettings']);
$library['path'] = 'development/' . $contents[$i];
$this->libraries[H5PDevelopment::libraryToString($library['machineName'], $library['majorVersion'], $library['minorVersion'])] = $library;
}