Skip to content
Snippets Groups Projects
Commit 660c8e89 authored by Andreas Wolf's avatar Andreas Wolf Committed by Steffen Ritter
Browse files

[BUGFIX] Info link in file context menu broken

The link for file info in the context menu of the file list module does
not work, as it missed the special identifier '_FILE'.

Change-Id: Ie9990e3800b0d4e8b49c2594b4ad96d9ffe9839b
Resolves: #41396
Releases: 6.0
Reviewed-on: http://review.typo3.org/15295
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
parent c0fcf6be
Branches
Tags
No related merge requests found
......@@ -749,7 +749,7 @@ class ClickMenu {
}
// Info
if (!in_array('info', $this->disabledItems)) {
$menuItems['info'] = $this->DB_info($identifier, '');
$menuItems['info'] = $this->fileInfo($identifier);
}
$menuItems[] = 'spacer';
// Copy:
......@@ -901,6 +901,16 @@ class ClickMenu {
return $this->linkItem($this->label('pasteinto'), $this->excludeIcon(\TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-paste-into')), $editOnClick . 'return false;');
}
/**
* Adding ClickMenu element for file info
*
* @param string $identifier The combined identifier of the file.
* @return array Item array, element in $menuItems
*/
protected function fileInfo($identifier) {
return $this->DB_info('_FILE', $identifier);
}
/***************************************
*
* DRAG AND DROP
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment