[TASK] Disable slug in pseudo sites and disable alias in sites
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Element / InputSlugElement.php
index 7cd49b3..384ffd4 100644 (file)
@@ -62,7 +62,7 @@ class InputSlugElement extends AbstractFormElement
         $resultArray = $this->initializeResultArray();
 
         $languageField = $GLOBALS['TCA'][$table]['ctrl']['languageField'];
-        $languageId = (int)($row[$languageField] ?? $this->data['defaultLanguageRow'][$languageField] ?? 0);
+        $languageId = (int)($row[$languageField][0] ?? 0);
         $baseUrl = $this->getPrefix($this->data['site'], $languageId);
 
         $itemValue = $parameterArray['itemFormElValue'];