[BUGFIX] Declare statically called method static 82/33582/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Mon, 27 Oct 2014 19:16:32 +0000 (20:16 +0100)
committerFrank Nägler <typo3@naegler.net>
Mon, 27 Oct 2014 19:27:51 +0000 (20:27 +0100)
InlineElement::updateInlineView() is only used once throughout the core
and called statically, although the method is not declared to be static.

Fix this by declaring it static.

Resolves: #62501
Releases: 6.2, master
Change-Id: Ifeb8551899ccf285d87a66767bf7de4e8e98b32f
Reviewed-on: http://review.typo3.org/33582
Reviewed-by: Cedric Ziel <cedric@cedric-ziel.com>
Tested-by: Cedric Ziel <cedric@cedric-ziel.com>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/backend/Classes/Form/Element/InlineElement.php

index 24f428e..440ffc0 100644 (file)
@@ -2461,7 +2461,7 @@ class InlineElement {
         * @param \TYPO3\CMS\Core\DataHandling\DataHandler $tce Instance of TCEmain that saved data before
         * @return void
         */
-       public function updateInlineView(&$uc, $tce) {
+       static public function updateInlineView(&$uc, $tce) {
                if (isset($uc['inlineView']) && is_array($uc['inlineView'])) {
                        $inlineView = (array) unserialize($GLOBALS['BE_USER']->uc['inlineView']);
                        foreach ($uc['inlineView'] as $topTable => $topRecords) {