BUGFIX: Fixed issue where the $id variable would be overridden in subsequent iterations of the derived fields loop

This commit is contained in:
UndefinedOffset 2016-04-12 18:31:53 -03:00
parent 2067786e7f
commit 5571e99506
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}