From aa17002e2bdffc5bbc5dbe691ebdaaea11635010 Mon Sep 17 00:00:00 2001 From: Hadlee Lineham Date: Tue, 17 Sep 2024 10:52:29 +1200 Subject: [PATCH] Update SubsitesVirtualPageExtension.php Adding in SubsiteID into SubsiteVirtualPage --- src/Extensions/SubsitesVirtualPageExtension.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Extensions/SubsitesVirtualPageExtension.php b/src/Extensions/SubsitesVirtualPageExtension.php index df8ac96..1c0fb70 100644 --- a/src/Extensions/SubsitesVirtualPageExtension.php +++ b/src/Extensions/SubsitesVirtualPageExtension.php @@ -35,6 +35,7 @@ public function exportObjectToAlgolia($toIndex) } $attributes->push('objectClassName', $originalObject->ClassName); + $attributes->push('objectSubsiteID', $this->owner->SubsiteID); $specs = $originalObject->config()->get('algolia_index_fields'); $attributes = $indexer->addSpecsToAttributes($originalObject, $attributes, $specs);