[BUGFIX] reset array_keys for record media

This commit is contained in:
Willi Wehmeier 2017-11-28 12:09:11 +01:00
parent df9421433d
commit cd391abf10

View file

@ -74,7 +74,7 @@ class PagesIndexer extends TcaIndexer
$content = $this->fetchContentForPage($record['uid']);
if ($content !== []) {
$record['content'] = $content['content'];
$record['media'] = array_unique(array_merge($record['media'], $content['images']));
$record['media'] = array_values(array_unique(array_merge($record['media'], $content['images'])));
}
parent::prepareRecord($record);
}