[TASK] Fix deprecated things in sysnote 94/18194/3
authorMarkus Günther <mail@markus-guenther.de>
Mon, 11 Feb 2013 06:43:36 +0000 (07:43 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 7 Mar 2013 22:48:58 +0000 (23:48 +0100)
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
typo3/sysext/sys_note/Classes/Controller/NoteController.php
typo3/sysext/sys_note/Classes/Domain/Repository/SysNoteRepository.php

index 5019db5..ead576d 100644 (file)
@@ -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);
        }
index 0d9c87c..03d0857 100644 (file)
@@ -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);
        }
 
        /**