Merge pull request #113 from webbuilders-group/derived-id-override-fix

BUGFIX: Fixed issue where the $id variable would be overridden in derived fields
This commit is contained in:
Damian Mooyman 2016-04-20 13:46:23 +12:00
commit afe7af18d2
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;
}