Skip to content

Commit

Permalink
Fix #811 - Avoid exception, if configuration group was deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Aug 25, 2024
1 parent 4349fdf commit 3a5215f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Service/TcaInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function renderPreviewField(string $tableName, int $uid, int $limit): str
WorkspaceUtility::getCurrentWorkspaceId()
);

return sprintf(TranslateUtility::get('previewLabel'), $count, $limit) . $this->getEventList($next);
return \sprintf(TranslateUtility::get('previewLabel'), $count, $limit) . $this->getEventList($next);
}

/**
Expand Down
4 changes: 3 additions & 1 deletion Classes/Service/TcaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ protected function getConfigurationGroupTitle(array $row): string
$groups = GeneralUtility::trimExplode(',', $row['groups'], true);
foreach ($groups as $key => $id) {
$row = BackendUtility::getRecord('tx_calendarize_domain_model_configurationgroup', $id);
$groups[$key] = $row['title'] . ' (#' . $id . ')';
if (!empty($row)) {
$groups[$key] = $row['title'] . ' (#' . $id . ')';
}
}
if ($groups) {
$title .= '<ul><li>' . implode('</li><li>', $groups) . '</li></ul>';
Expand Down

0 comments on commit 3a5215f

Please sign in to comment.