mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-23 21:16:12 +01:00
Merge pull request #103 from whmyr/support/76
BUGFIX: Reset array_keys for pages field media
This commit is contained in:
commit
2d4ff08ef8
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class PagesIndexer extends TcaIndexer
|
||||||
$content = $this->fetchContentForPage($record['uid']);
|
$content = $this->fetchContentForPage($record['uid']);
|
||||||
if ($content !== []) {
|
if ($content !== []) {
|
||||||
$record['content'] = $content['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);
|
parent::prepareRecord($record);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue