Skip to content

Commit

Permalink
Fix check for sortBy field (#451)
Browse files Browse the repository at this point in the history
* Fix check for sortBy field

See comment here: #421 (comment)

* Update TypoScript.php

StyleCI fix
  • Loading branch information
Hawkeye1909 authored Aug 28, 2023
1 parent 8f77d2e commit ac3a41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Utility/TypoScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function override(array $previousData, array $tsData)
}
}
} else {
if ($fieldName === 'sortBy' && ($previousData['sortBy'] ?? '' === 'default') && (($tsData['settings']['sortBy'] ?? '') !== '')) {
if ($fieldName === 'sortBy' && (($previousData['sortBy'] ?? '') === 'default') && (($tsData['settings']['sortBy'] ?? '') !== '')) {
unset($previousData['sortBy']);
}
// if flexform setting is empty and value is available in TS
Expand Down

0 comments on commit ac3a41d

Please sign in to comment.