[BUGFIX] Fix SQL error in Livesearch with empty TCA sortby setting 41/15541/2
authorLaurent Cherpit <lcherpit@ttree.ch>
Sat, 6 Oct 2012 15:18:43 +0000 (17:18 +0200)
committerErnesto Baschny <ernst@cron-it.de>
Tue, 7 May 2013 18:35:12 +0000 (20:35 +0200)
commit53b49a17b97e83de477e676e0cc0c316adc2fd89
tree149b7cebba5cedea73607c07d37005cdbe20a236
parente0603861b30fb62d81bbfbd9c13670330711f088
[BUGFIX] Fix SQL error in Livesearch with empty TCA sortby setting

If a searchable TCA field has a sortby setting which contains an empty
string or NULL, then BE Livesearch creates a query with one or more
'ORDER BY' without value, generating an SQL error. This fixes that.

Change-Id: I0457020ef31850458e3bd4286214f8e57278223e
Fixes: #40816
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: https://review.typo3.org/15541
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Mario Rimann
Reviewed-by: Steffen Ritter
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Ernesto Baschny
t3lib/search/class.t3lib_search_livesearch.php