[BUGFIX] PageLayoutView: Removed call to deprecated method render() 67/46867/2
authorMichael Oehlhof <typo3@oehlhof.de>
Tue, 23 Feb 2016 23:28:33 +0000 (00:28 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 24 Feb 2016 13:17:11 +0000 (14:17 +0100)
Call of FlashMessage->render() was replaced with appropriate code if
*CType 'list' list_type has invalid value
*CType not defined

Resolves: #73638
Releases: master, 7.6
Change-Id: Ic6342e8eae8bace4d855d6471dd2ccefd339efc1
Reviewed-on: https://review.typo3.org/46867
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index f841936..9d7ea34 100644 (file)
@@ -1666,12 +1666,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                             $out .=  $this->linkEditContent('<strong>' . $this->getLanguageService()->sL($label, true) . '</strong>', $row) . '<br />';
                         } else {
                             $message = sprintf($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.noMatchingValue'), $row['list_type']);
-                            $out .= GeneralUtility::makeInstance(
-                                FlashMessage::class,
-                                htmlspecialchars($message),
-                                '',
-                                FlashMessage::WARNING
-                            )->render();
+                            $out .= '<span class="label label-warning">' . htmlspecialchars($message) . '</span>';
                         }
                     } elseif (!empty($row['select_key'])) {
                         $out .= $this->getLanguageService()->sL(BackendUtility::getItemLabel('tt_content', 'select_key'), true)
@@ -1700,12 +1695,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                             $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.noMatchingValue'),
                             $row['CType']
                         );
-                        $out .= GeneralUtility::makeInstance(
-                            FlashMessage::class,
-                            htmlspecialchars($message),
-                            '',
-                            FlashMessage::WARNING
-                        )->render();
+                        $out .= '<span class="label label-warning">' . htmlspecialchars($message) . '</span>';
                     }
             }
         }