[BUGFIX] Ignore missing API key exception

This commit is contained in:
Markus Klein 2023-07-06 18:34:18 +02:00
parent 9418000e25
commit be3e3b0362
2 changed files with 10 additions and 2 deletions

View file

@ -25,7 +25,15 @@ class TcaEnhancer
$pid = $this->resolvePid($params['row']);
if ($pid > 0) {
try {
$campaigns = $this->campaignsFactory->createFromPageUid($pid)->getForUser();
} catch (\InvalidArgumentException $e) {
// ignore missing API key exception
if ($e->getCode() !== 1688660942) {
throw $e;
}
return;
}
/** @var Campaign $campaign */
foreach ($campaigns as $campaign) {
$params['items'][] = [

View file

@ -27,7 +27,7 @@
},
"require": {
"php": "^7.4 || ^8.1 || ^8.2",
"skilldisplay/phptoolkit": "^2.0",
"skilldisplay/phptoolkit": "^2.0.1",
"typo3/cms-backend": "^11.5 || ^12.4",
"typo3/cms-frontend": "^11.5 || ^12.4"
},