Revert "[TASK] Fix deprecated things in sysnote" 90/19490/2
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Mon, 1 Apr 2013 13:52:42 +0000 (15:52 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 1 Apr 2013 16:05:57 +0000 (18:05 +0200)
This reverts commit 524951cfebdc1443e084a3f2f2e95612f6a43272.

Commit 524951cfebdc1443e084a3f2f2e95612f6a43272 has to be
reverted as it relies on patch http://forge.typo3.org/issues/42506
which has been reverted due to an introduced regression.

Resolves: #46838
Releases: 6.1
Change-Id: I3d1037e508a0defbe127a6f4b8f15efdcf678ef3
Reviewed-on: https://review.typo3.org/19490
Reviewed-by: Marc Bastian Heinrichs
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 ead576d..5019db5 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->findByIdentifier($GLOBALS['BE_USER']->user['uid']);
+               $author = $this->backendUserRepository->findByUid($GLOBALS['BE_USER']->user['uid']);
                $notes = $this->sysNoteRepository->findByPidsAndAuthor($pids, $author);
                $this->view->assign('notes', $notes);
        }
index a9c0bb4..155ae9a 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->persistenceManager->setDefaultQuerySettings($querySettings);
+               $this->setDefaultQuerySettings($querySettings);
        }
 
        /**