Bug Report
Current Behavior
Error message undefined array key "allowOverride" is displayed when a URL is called with override values e.g. tx_ttaddress_listview[override][categories]=1, although the content element has allowOverride not enabled.
Documentation
|
<f:link.page |
|
additionalParams="{tx_ttaddress_listview:{override:{categories: 1}}}"> |
|
Category 1 |
|
</f:link.page> |
Expected behavior/output
no error message should be displayed, instead an address list matching the defined (not override) values should be displayed
Environment
- TYPO3 version(s): 12.4.38 / 12.4.43
- tt_address version: 9.1.0
- Is your TYPO3 installation set up with Composer (Composer Mode): no
Possible Solution
The error is caused by line
|
if (!empty($override) && $this->settings['allowOverride']) { |
This line should be changed to:
if (!empty($override) && (int) ($this->settings['allowOverride'] ?? 0) === 1) {
Bug Report
Current Behavior
Error message undefined array key "allowOverride" is displayed when a URL is called with override values e.g. tx_ttaddress_listview[override][categories]=1, although the content element has allowOverride not enabled.
Documentation
tt_address/Documentation/Administration/Changelog/v/4-2-0.rst
Lines 37 to 40 in a88e763
Expected behavior/output
no error message should be displayed, instead an address list matching the defined (not override) values should be displayed
Environment
Possible Solution
The error is caused by line
tt_address/Classes/Controller/AddressController.php
Line 84 in a88e763
This line should be changed to:
if (!empty($override) && (int) ($this->settings['allowOverride'] ?? 0) === 1) {