We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4930963 commit 9fd19aaCopy full SHA for 9fd19aa
app/code/Magento/MediaGalleryUi/Model/Directories/GetFolderTree.php
@@ -84,8 +84,9 @@ private function getDirectories(): array
84
}
85
86
$pathArray = explode('/', $path);
87
+ $displayName = strlen(end($pathArray)) > 50 ? substr(end($pathArray),0,50)."..." : end($pathArray);
88
$directories[] = [
- 'data' => count($pathArray) > 0 ? end($pathArray) : $path,
89
+ 'data' => count($pathArray) > 0 ? $displayName : $path,
90
'attr' => ['id' => $path],
91
'metadata' => [
92
'path' => $path
0 commit comments