Skip to content

Commit f8b19ae

Browse files
authored
getEntriesメソッドで正しいエントリーが取得できない問題を解消 (#4256)
1 parent fdfd42b commit f8b19ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/bc-custom-content/src/View/Helper/CustomContentHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public function getEntries(string $contentsName, int $limit = 5, array $options
515515
}
516516
$service = $this->getService(CustomContentFrontServiceInterface::class);
517517
$customContent = $service->ContentsService->get($content->entity_id);
518-
$service->EntriesService->setup($content->entity_id);
518+
$service->EntriesService->setup($customContent->custom_table_id);
519519
$entities = $service->EntriesService->getIndex($options);
520520
return $this->BcBaser->getElement("BcCustomContent.../CustomContent/{$customContent->template}/entries", [
521521
'customEntries' => $entities,

0 commit comments

Comments
 (0)