[BUGFIX] Indexing files does not store the language 34/22334/2
authorMario Rimann <mario.rimann@typo3.org>
Thu, 14 Mar 2013 10:32:55 +0000 (11:32 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 15 Jul 2013 21:59:56 +0000 (23:59 +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/22334
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/indexed_search/Classes/Indexer.php

index 0f97b4e..36e0fde 100644 (file)
@@ -1612,7 +1612,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);
@@ -2150,4 +2151,4 @@ class Indexer {
 }
 
 
-?>
\ No newline at end of file
+?>