investigation-summary → investigation

This commit is contained in:
Julie Blanc 2026-02-14 17:07:52 +01:00
parent b5f9da678f
commit 0726c50993
8 changed files with 52 additions and 52 deletions

View file

@ -4,7 +4,7 @@ tabs:
contentTab:
linkedInvestigations:
type: pages
template: investigation-summary
template: investigation
linkedMedias:
type: url
seo: seo/page

View file

@ -337,7 +337,7 @@
$relatedInvestigations = $page->relatedInvestigations()->toPages();
if ($relatedInvestigations->isEmpty()) {
// Si pas d'enquêtes liées définies, prendre les 3 dernières enquêtes (sauf la page actuelle)
$relatedInvestigations = $page->parent()->children()->filterBy('intendedTemplate', 'investigation-summary')->not($page)->listed()->limit(3);
$relatedInvestigations = $page->parent()->children()->filterBy('intendedTemplate', 'investigation')->not($page)->listed()->limit(3);
}
?>