Project

General

Profile

Actions

Bug #73547

closed

can't delete record when tca field "sortby" has direction

Added by Philipp Parzer almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2016-02-19
Due date:
% Done:

0%

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

Description

encounted while writing an extension:
When there is a direction given in the TCA field "sortby" in the crtl section, you can't delete the record in the backend.

'sortby' => 'id', -> deleteable
'sortby' => 'id DESC', -> not deleteable !
'default_sortby' => 'id', -> deleteable
'default_sortby' => 'id DESC', -> deleteable

tested on Typo3 Version 6.2.17 and 7.6.2

Actions #1

Updated by Mathias Schreiber almost 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

Does it work when using default_sortby?

Actions #2

Updated by Philipp Parzer almost 9 years ago

yes

Actions #3

Updated by Mathias Schreiber almost 9 years ago

  • Status changed from Needs Feedback to Closed

Screw my last remark, the report got cut off by Slack.
Yes, this is indeed correct.
"sortby" requests a "field", "id DESC" is not a fieldname.
Using default_sortby is the way to go here.

Actions #4

Updated by Philipp Parzer almost 9 years ago

ok, got it
although confusing because the sorting works

Actions

Also available in: Atom PDF