Project

General

Profile

Actions

Bug #97143

closed

Undefined array key "foreign_table_where" in SuggestWizardController

Added by Georg Tiefenbrunn over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-03-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

PHP Warning: Undefined array key "foreign_table_where" in typo3/sysext/backend/Classes/Controller/Wizard/SuggestWizardController.php line 311

-        return trim(preg_replace('/ORDER[[:space:]]+BY.*/i', '', $fieldConfig['foreign_table_where']));
+        return trim(preg_replace('/ORDER[[:space:]]+BY.*/i', '', (string)($fieldConfig['foreign_table_where'] ?? '')));
Actions

Also available in: Atom PDF