From 2d4255b7a864e21acac4a992efb5af80241d3acf Mon Sep 17 00:00:00 2001
From: Gerrit Mohrmann <mohrmann.t3@gmx.de>
Date: Tue, 25 Oct 2016 14:11:58 +0200
Subject: [PATCH] [BUGFIX] Wrong doctrine migration in indexed_search

Insert column 'phash' in the select statement
in checkContentHash()

Resolves: #78429
Related: #77390
Releases: master
Change-Id: I51395ec0a367fa54fba21d7b632ff37c77205dca
Reviewed-on: https://review.typo3.org/50369
Reviewed-by: Frederic Gaus <frederic.gaus@flagbit.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
---
 typo3/sysext/indexed_search/Classes/Indexer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/indexed_search/Classes/Indexer.php b/typo3/sysext/indexed_search/Classes/Indexer.php
index 98371932d6ab..15355346abba 100644
--- a/typo3/sysext/indexed_search/Classes/Indexer.php
+++ b/typo3/sysext/indexed_search/Classes/Indexer.php
@@ -1852,7 +1852,7 @@ class Indexer
         if (IndexedSearchUtility::isTableUsed('index_phash')) {
             $row = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('index_phash')
                 ->select(
-                    ['item_mtime', 'tstamp'],
+                    ['phash'],
                     'index_phash',
                     [
                         'phash_grouping' => (int)$this->hash['phash_grouping'],
-- 
GitLab