Skip to content

Commit

Permalink
[TASK] Remove redundant ORDER BY clause in default_sortby (#2189)
Browse files Browse the repository at this point in the history
The ORDER BY clause is redundant and is removed by TYPO3 anyway.

The link type defined both, sortby and default_sortby. This is invalid.
In this case sortby overrules default_sortby and hence the latter can
be removed.
  • Loading branch information
nhovratov authored Sep 7, 2023
1 parent 0d181e8 commit d71e20e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Configuration/TCA/tx_news_domain_model_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
'translationSource' => 'l10n_source',
'versioningWS' => true,
'origUid' => 't3_origuid',
'default_sortby' => 'ORDER BY sorting',
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => [
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/tx_news_domain_model_news.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'translationSource' => 'l10n_source',
'default_sortby' => 'ORDER BY datetime DESC',
'default_sortby' => 'datetime DESC',
'sortby' => ($configuration->getManualSorting() ? 'sorting' : ''),
'delete' => 'deleted',
'enablecolumns' => [
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TCA/tx_news_domain_model_tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'translationSource' => 'l10n_source',
'default_sortby' => 'ORDER BY title',
'default_sortby' => 'title',
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
Expand Down

0 comments on commit d71e20e

Please sign in to comment.