Issue Bug Closed

#20425ctrl-section option 'sortby' => 'myfield DESC', causes SQL-error on saving a new record

Jochen Rieger 05/15/09, 12:04 updated 10/02/18, 12:25

Description

I created a table via extMgr and changed the sortby option in ext_tables.php to

‘sortby’ => ‘mysortfield DESC’

On saving the INSERT will look like this:

INSERT INTO tx_myable (field1, field2, mysortfield DESC, field3) VALUES …

Of cause DESC will lead to an SQL error here.

(issue imported from #M11090)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.