[BUGFIX] Indexing files does not store the language 99/18899/4
authorMario Rimann <mario.rimann@typo3.org>
Thu, 14 Mar 2013 10:32:55 +0000 (11:32 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 15 Jul 2013 16:51:47 +0000 (18:51 +0200)
While indexing externals (e.g. PDF files) the language of the page
being rendered is not stored with the indexed file content. Thus
the file is shown/not shown in the wrong situations.

See detailed description in bug-report regarding the "situations".

Change-Id: I69eb1e222eb186b052eba93eaa9d5a80dd1e87ab
Resolves: #46261
Releases: 4.7, 6.0, 6.1, 6.2
Reviewed-on: https://review.typo3.org/18899
Reviewed-by: Henrik Ziegenhain
Tested-by: Henrik Ziegenhain
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/indexed_search/Classes/Indexer.php

index 88414b0..d8eca63 100644 (file)
@@ -1619,7 +1619,8 @@ class Indexer {
                        'externalUrl' => $fileParts['scheme'] ? 1 : 0,
                        'recordUid' => intval($this->conf['recordUid']),
                        'freeIndexUid' => intval($this->conf['freeIndexUid']),
-                       'freeIndexSetId' => intval($this->conf['freeIndexSetId'])
+                       'freeIndexSetId' => intval($this->conf['freeIndexSetId']),
+                       'sys_language_uid' => intval($this->conf['sys_language_uid'])
                );
                if (\TYPO3\CMS\IndexedSearch\Utility\IndexedSearchUtility::isTableUsed('index_phash')) {
                        $GLOBALS['TYPO3_DB']->exec_INSERTquery('index_phash', $fields);