Skip to content

Undefined array key "allowOverride" #616

Description

@sklngr

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) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions