Skip to content
Snippets Groups Projects
Commit 6f298d83 authored by Xavier Perseguers's avatar Xavier Perseguers Committed by Alexander Opitz
Browse files

[BUGFIX] Invalid class name in EXT:sys_note

Core class BackendUtility is wrongly referenced with a short namespace
and crashes Web > Page when a sys_note is present.

Resolves: #64862
Releases: master
Change-Id: I17edcdbd93af5d4367f562c036930565a155d6f8
Reviewed-on: http://review.typo3.org/36667


Reviewed-by: default avatarAndreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: default avatarAndreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: default avatarAlexander Opitz <opitz.alexander@googlemail.com>
Tested-by: default avatarAlexander Opitz <opitz.alexander@googlemail.com>
parent 5a09adb1
Branches
Tags
No related merge requests found
......@@ -14,6 +14,8 @@ namespace TYPO3\CMS\SysNote\ViewHelpers;
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Backend\Utility\BackendUtility;
/**
* ViewHelper to create a link to delete a note
*
......@@ -30,7 +32,7 @@ class DeleteLinkViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractView
public function render($id) {
$redirectUrl = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REQUEST_URI');
$parameters = 'cmd[sys_note][' . $id . '][delete]=1';
$url = $GLOBALS['BACK_PATH'] . BackendUtility::getModuleUrl('tce_db') . '&' . $parameters . '&redirect=' . ($redirectUrl == '' ? '\' + T3_THIS_LOCATION + \'' : rawurlencode($redirectUrl)) . \TYPO3\CMS\Backend\Utility\BackendUtility::getUrlToken('tceAction');
$url = $GLOBALS['BACK_PATH'] . BackendUtility::getModuleUrl('tce_db') . '&' . $parameters . '&redirect=' . ($redirectUrl == '' ? '\' + T3_THIS_LOCATION + \'' : rawurlencode($redirectUrl)) . BackendUtility::getUrlToken('tceAction');
return $url;
}
......
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