[BUGFIX] Fix CSH on Info -> Pagetree overview 03/51503/2
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Wed, 1 Feb 2017 19:10:18 +0000 (20:10 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 2 Feb 2017 00:30:09 +0000 (01:30 +0100)
Fixes undefined variable.

Releases: master
Resolves: #79586
Change-Id: I9873775cabfd274c03353b1022f325ee2636269f
Reviewed-on: https://review.typo3.org/51503
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 57ebc9e..c54c4ed 100644 (file)
@@ -411,7 +411,8 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                 }
             }
             // CSH:
-            $out = BackendUtility::cshItem($this->descrTable, ('func_' . $pKey), null, '<span class="btn btn-default btn-sm">|</span>') . '
+            $optionKey = $this->getPageLayoutController()->MOD_SETTINGS['pages'];
+            $out = BackendUtility::cshItem($this->descrTable, ('func_' . $optionKey), null, '<span class="btn btn-default btn-sm">|</span>') . '
                 <div class="table-fit">
                                        <table class="table table-striped table-hover typo3-page-pages">' .
                         '<thead>' .