From 5571e995063265a3d6c31b95f874389d23c58731 Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Tue, 12 Apr 2016 18:31:53 -0300 Subject: [PATCH] BUGFIX: Fixed issue where the $id variable would be overridden in subsequent iterations of the derived fields loop --- code/search/SearchIndex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/search/SearchIndex.php b/code/search/SearchIndex.php index 817c109..fbf1634 100644 --- a/code/search/SearchIndex.php +++ b/code/search/SearchIndex.php @@ -552,8 +552,8 @@ abstract class SearchIndex extends ViewableData $dirty[$base] = array(); } - foreach ($ids as $id) { - $statefulid = array('id' => $id, 'state' => $state); + foreach ($ids as $rid) { + $statefulid = array('id' => $rid, 'state' => $state); $key = serialize($statefulid); $dirty[$base][$key] = $statefulid; }