Skip to content

Commit 9a64abe

Browse files
committed
Bug where calling relatedcontent twice in a template was getting results from the first call.
1 parent a21940e commit 9a64abe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/RelatedContentExtension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ public function getDisplayName()
6868
function getRelatedContent($record, $options = [])
6969
{
7070

71+
// Reset the result stores
72+
$this->manual_results = [];
73+
$this->weighted_results = [];
74+
$this->auto_results = [];
75+
7176
// Save parameters to class
7277
$this->record = $record;
7378
$this->options = $options;

0 commit comments

Comments
 (0)