Skip to content

Commit c41a7bb

Browse files
committed
fix #239 Access to undefined array keys in list view
1 parent 7a3c0dd commit c41a7bb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Classes/Hooks/AllowLanguageSynchronizationHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function processDatamap_beforeStart(DataHandler $dataHandler): void
3131
&& isset($columnConfig['config']['behaviour']['allowLanguageSynchronization'])
3232
&& (bool)$columnConfig['config']['behaviour']['allowLanguageSynchronization'] === true
3333
) {
34-
if ($columnConfig['l10n_mode'] == 'prefixLangTitle') {
34+
if (isset($columnConfig['l10n_mode']) && $columnConfig['l10n_mode'] == 'prefixLangTitle') {
3535
$l10nState[$column] = 'custom';
3636
} else {
3737
$l10nState[$column] = 'parent';

Classes/Service/DeeplService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public function translateRequest(string $content, string $targetLanguage, string
7979
}
8080

8181
try {
82+
if(!isset($glossary['glossary_id'])) {
83+
$glossary['glossary_id'] = '';
84+
}
8285
$response = $this->client->translate($content, $sourceLanguage, $targetLanguage, $glossary['glossary_id']);
8386
} catch (ClientException $e) {
8487
$flashMessage = GeneralUtility::makeInstance(

0 commit comments

Comments
 (0)