Current Behavior
I click on "new record", select the tt-address and get an exception.
Expected behavior/output
The default edit/create view should appear.
Environment
PHP version: 8.2
TYPO3 version(s): 12.4.9
tt_address version: 8.0.2
Is your TYPO3 installation set up with Composer (Composer Mode): yes
OS: Debian
Possible Solution
The issue is located in Classes/Hooks/Tca/Label.php line 33. Maybe check if it's a new record or an existing one. For new records the old code should be used, for existing ones the new code should be used.
public function getAddressLabel(array &$params): void
{
// ...
if (is_numeric($params['row']['uid'])) {
$row = BackendUtility::getRecord('tt_address', (int) $params['row']['uid']);
} else {
$row = $params['row'];
}
// ...
}
Bug Report
Current Behavior I click on "new record", select the tt-address and get an exception.
Expected behavior/output The default edit/create view should appear.
Environment
Possible Solution The issue is located in Classes/Hooks/Tca/Label.php line 33. Maybe check if it's a new record or an existing one. For new records the old code should be used, for existing ones the new code should be used.