diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 577706f..6ef415f 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1495,7 +1495,7 @@ class Translatable extends DataExtension implements PermissionProvider { foreach ($langlist as $langCode) { if($langCode && isset($allCodes[$langCode])) { if(is_array($allCodes[$langCode])) { - $returnMap[$langCode] = $allCodes[$langCode][0]; + $returnMap[$langCode] = $allCodes[$langCode]['name']; } else { $returnMap[$langCode] = $allCodes[$langCode]; } @@ -1763,4 +1763,4 @@ class Translatable_Transformation extends FormTransformation { return $nonEditableField_holder; } -} \ No newline at end of file +}