[BUGFIX] Fix errors in sys_note annotation 46/18346/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 17 Feb 2013 16:37:13 +0000 (17:37 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 18 Feb 2013 22:05:41 +0000 (23:05 +0100)
An exception is thrown because the pidlist is annotated with
"mixed" which can't be resolved by extbase. Therefore it must
be changed to "string".

Change-Id: Ic8d77945169bbbd8a084232ab3ee9fceb30b794c
Fixes: #45552
Releases: 6.1
Reviewed-on: https://review.typo3.org/18346
Reviewed-by: Wouter Wolters
Reviewed-by: Oliver Klee
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/sys_note/Classes/Controller/NoteController.php
typo3/sysext/sys_note/Classes/Domain/Repository/SysNoteRepository.php

index 4c5fffa..5019db5 100644 (file)
@@ -47,7 +47,7 @@ class NoteController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
        /**
         * Render notes by single PID or PID list
         *
-        * @param mixed $pids Single PID or comma separated list of PIDs
+        * @param string $pids Single PID or comma separated list of PIDs
         * @return string
         * @dontvalidate $pids
         */
index e338566..0d9c87c 100644 (file)
@@ -46,7 +46,7 @@ class SysNoteRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
        /**
         * Find notes by given pids and author
         *
-        * @param mixed $pids Single PID or comma separated list of PIDs
+        * @param string $pids Single PID or comma separated list of PIDs
         * @param \TYPO3\CMS\Extbase\Domain\Model\BackendUser $author The author
         * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface
         */