Skip to content

Commit bbc384d

Browse files
committed
[BUGFIX] Add "info" action in context menu for folders
The context menu for folders now also provides the element info action like it's also available via the list item control actions. Resolves: #106746 Releases: main, 13.4 Change-Id: I3fcddf23300226368df6563e344705347cc8b234 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89504 Tested-by: Oli Bartsch <bo@cedev.de> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Oli Bartsch <bo@cedev.de>
1 parent 5f8f8f7 commit bbc384d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ protected function canRender(string $itemName, string $type): bool
178178
case 'updateOnlineMedia':
179179
$canRender = $this->isOnlineMedia() && $this->canEditMetadata();
180180
break;
181-
case 'info':
182-
$canRender = $this->canShowInfo();
183-
break;
184181

185182
// just for folders
186183
case 'new':
@@ -196,6 +193,9 @@ protected function canRender(string $itemName, string $type): bool
196193
break;
197194

198195
//for both files and folders
196+
case 'info':
197+
$canRender = $this->canShowInfo();
198+
break;
199199
case 'rename':
200200
$canRender = $this->canBeRenamed();
201201
break;
@@ -253,7 +253,7 @@ protected function canBeDeleted(): bool
253253

254254
protected function canShowInfo(): bool
255255
{
256-
return $this->isFile();
256+
return $this->record !== null;
257257
}
258258

259259
protected function canCreateNew(): bool

0 commit comments

Comments
 (0)