Project

General

Profile

Actions

Bug #14267

closed

sorting must be set for pi_list_query to work

Added by old_cazoo over 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
-
Start date:
2004-08-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.6.2
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In class.tslib_pibase.php the function pi_list_query() specifies "orderBy" as an optional param. However, it fails if no orderBy (can be empty) is set. This also affects pi_exec_query().

For example this code:

$this->pi_list_query("tx_some_table");

... generates non-vaild SQL like this:

" .... ORDER BY tx_some_table. LIMIT x,y"

(issue imported from #M280)

Actions

Also available in: Atom PDF