[BUGFIX] Fix SQL error in Livesearch with empty TCA sortby setting
authorLoek Hilgersom <loek@netcoop.nl>
Tue, 11 Sep 2012 18:54:52 +0000 (20:54 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Thu, 11 Oct 2012 16:34:18 +0000 (18:34 +0200)
commitaf5d5899af6c1e2814cf3ef07eecb105e0661fc9
tree0a3d2d7b1384e922faf9b59753e6f4de1559c6a9
parent973b1990b1b031e712ac3f939398ee2614361d98
[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: I63aabfe860cd37645d9ac2905ed020d572629a1b
Fixes: #40816
Releases: 6.0
Reviewed-on: http://review.typo3.org/14526
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php