mirror of
https://github.com/SkillDisplay/TYPO3ContentElements.git
synced 2024-11-21 11:06:09 +01:00
[BUGFIX] Ignore missing API key exception
This commit is contained in:
parent
9418000e25
commit
be3e3b0362
2 changed files with 10 additions and 2 deletions
|
@ -25,7 +25,15 @@ class TcaEnhancer
|
|||
|
||||
$pid = $this->resolvePid($params['row']);
|
||||
if ($pid > 0) {
|
||||
$campaigns = $this->campaignsFactory->createFromPageUid($pid)->getForUser();
|
||||
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'][] = [
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue