[BUGFIX] Avoid exceptions during indexing with indexed_search 04/52704/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 4 May 2017 12:29:05 +0000 (14:29 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 4 May 2017 12:47:25 +0000 (14:47 +0200)
commitf111a1484a16d5fe9c1e9dd1e05a52c5146c17d2
tree36bf4933cf6a3a32ad0b52b0132edb57af1f925b
parent77bca80cbf1a0fb8f52989946ea24c5617ef4c5b
[BUGFIX] Avoid exceptions during indexing with indexed_search

The exception "you need to add at least one set of values before
generating the SQL" occurs if the bulkInsert is triggered with
empty values. A check must be done before trying the query.

Resolves: #81140
Releases: master, 8.7
Change-Id: Ia0fe09e49d8e4b8341bda64ee248284c7ca2f3bd
Reviewed-on: https://review.typo3.org/52704
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/indexed_search/Classes/Indexer.php