Skip to content
Snippets Groups Projects
Commit 524951cf authored by Markus Günther's avatar Markus Günther Committed by Christian Kuhn
Browse files

[TASK] Fix deprecated things in sysnote

The extension sysnote uses deprecated methods in the repository and
the controller. This patch will adjust that.

Fixes: #45349
Releases: 6.1

Change-Id: I7270efb264b80eb852ad972e8a492c0941e83be2
Reviewed-on: https://review.typo3.org/18194
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
parent d07887a7
Branches
Tags
No related merge requests found
......@@ -55,7 +55,7 @@ class NoteController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
if (empty($pids) || empty($GLOBALS['BE_USER']->user['uid'])) {
return '';
}
$author = $this->backendUserRepository->findByUid($GLOBALS['BE_USER']->user['uid']);
$author = $this->backendUserRepository->findByIdentifier($GLOBALS['BE_USER']->user['uid']);
$notes = $this->sysNoteRepository->findByPidsAndAuthor($pids, $author);
$this->view->assign('notes', $notes);
}
......
......@@ -40,7 +40,7 @@ class SysNoteRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
public function initializeObject() {
$querySettings = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings');
$querySettings->setRespectStoragePage(FALSE);
$this->setDefaultQuerySettings($querySettings);
$this->persistenceManager->setDefaultQuerySettings($querySettings);
}
/**
......
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