[BUGFIX] Allow editing of pages with language ID > 9 96/58696/2
authorDaniel Goerz <daniel.goerz@posteo.de>
Thu, 25 Oct 2018 10:49:47 +0000 (12:49 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 25 Oct 2018 11:26:59 +0000 (13:26 +0200)
Resolves: #86734
Releases: master
Change-Id: Ib26c0336531e1e692f73ccc431b7091c47755ce9
Reviewed-on: https://review.typo3.org/58696
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Form/Element/InputSlugElement.php

index 28f1415..cfbf13b 100644 (file)
@@ -76,7 +76,7 @@ class InputSlugElement extends AbstractFormElement
         $resultArray = $this->initializeResultArray();
 
         $languageField = $GLOBALS['TCA'][$table]['ctrl']['languageField'];
-        $languageId = (int)($row[$languageField][0] ?? 0);
+        $languageId = (int)($row[$languageField] ?? 0);
         $baseUrl = $this->getPrefix($this->data['site'], $languageId);
 
         $itemValue = $parameterArray['itemFormElValue'];