[BUGFIX] Declare statically called method static 84/33584/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:32:04 +0000 (20:32 +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>
(cherry picked from commit fc9666b257896a9fc59aab61b2c2ac8a196ef151)
Reviewed-on: http://review.typo3.org/33584

typo3/sysext/backend/Classes/Form/Element/InlineElement.php

index 4fd3b46..322bc81 100644 (file)
@@ -2499,7 +2499,7 @@ class InlineElement {
         * @return void
         * @todo Define visibility
         */
-       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) {