[BUGFIX] Fix access to non existing object 24/51724/2
authorSascha Egerer <sascha@sascha-egerer.de>
Thu, 16 Feb 2017 21:34:50 +0000 (22:34 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 16 Feb 2017 23:10:26 +0000 (00:10 +0100)
Fix a fatal error introduced in a previous refactoring of
the code.

Resolves: #79864
Releases: master
Change-Id: Ib50052f2d7b3485da97fbe7a4ad88041bb676dad
Reviewed-on: https://review.typo3.org/51724
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php

index dcd9087..124badb 100644 (file)
@@ -1036,7 +1036,7 @@ class PageLayoutController
             // Add CSH (Context Sensitive Help) icon to tool bar
             $contextSensitiveHelpButton = $this->buttonBar->makeHelpButton()
                 ->setModuleName($this->descrTable)
-                ->setFieldName('columns_' . $this->controller->MOD_SETTINGS['function']);
+                ->setFieldName('columns_' . $this->MOD_SETTINGS['function']);
             $this->buttonBar->addButton($contextSensitiveHelpButton);
         }
         $lang = $this->getLanguageService();