[BUGFIX] Fix SQL error in Livesearch with empty TCA sortby setting
authorLaurent Cherpit <lcherpit@ttree.ch>
Sat, 6 Oct 2012 15:18:43 +0000 (17:18 +0200)
committerXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 09:06:20 +0000 (11:06 +0200)
commit79beccc5673cbbe871d6ae1239423e829fb7fc8f
tree790064b08370018ec858723edd31d0d18df76599
parentd4cc0ca113dc2e5c1d1bbc6cf7ad07a5f4f93539
[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: http://review.typo3.org/15542
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/search/class.t3lib_search_livesearch.php