Replace Collections with CollectionMemberships missed in #374

This commit is contained in:
Mike Colagrosso 2024-07-13 17:08:18 -06:00 committed by Alex Cabal
parent 2613871e2d
commit ab95722f1e
2 changed files with 4 additions and 2 deletions

View file

@ -147,7 +147,8 @@ foreach(Library::GetEbooksFromFilesystem($webRoot) as $ebook){
}
// Add to the 'books by collection' list
foreach($ebook->Collections as $collection){
foreach($ebook->CollectionMemberships as $cm){
$collection = $cm->Collection;
if(!isset($ebooksByGroup['collections'][$collection->Name])){
$obj = new stdClass();
$obj->Label = $collection->Name;