Skip to content

Commit

Permalink
Add collection to summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrom committed Sep 27, 2024
1 parent 39cefa5 commit fecd49d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/resto/core/dbfunctions/CatalogsFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,12 @@ public function getSummaries($types, $collectionId)
$exploded = explode('/', $catalogs[$i]['id']);
$_collectionId = array_pop($exploded);
if ( !isset($pivots[$_collectionId]) ) {
$pivots[$_collectionId] = array();
$pivots[$_collectionId] = array(
'collection' => array(
'const' => $_collectionId,
'count' => $catalogs[$i]['counters']['collections'][$_collectionId]
)
);
}
}

Expand Down

0 comments on commit fecd49d

Please sign in to comment.