[BUGFIX] Status Message broken in lowlevel --> Manage Reference Index 03/38303/4
authorAlexander Kontos <info@mediafabrica.de>
Fri, 27 Mar 2015 12:47:05 +0000 (13:47 +0100)
committerFrank Nägler <typo3@naegler.net>
Fri, 27 Mar 2015 13:21:59 +0000 (14:21 +0100)
Fix broken View of Manage Reference Index status Message

Resolves: #66094
Releases: master
Change-Id: I1211014e5362ea93b5c56399514846c993dcfd7f
Reviewed-on: http://review.typo3.org/38303
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/core/Classes/Database/ReferenceIndex.php
typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php
typo3/sysext/lowlevel/dbint/cli/refindex_cli.php

index c7f39b7..eecd79c 100644 (file)
@@ -1147,7 +1147,7 @@ class ReferenceIndex {
                $recordsCheckedString = $recCount . ' records from ' . $tableCount . ' tables were checked/updated.' . LF;
                $flashMessage = GeneralUtility::makeInstance(
                        FlashMessage::class,
-                       $errorCount ? implode(LF, $errors) : 'Index Integrity was perfect!',
+                       $errorCount ? implode('##LF##', $errors) : 'Index Integrity was perfect!',
                        $recordsCheckedString,
                        $errorCount ? FlashMessage::ERROR : FlashMessage::OK
                );
index 0fcf59d..dce729d 100644 (file)
@@ -274,7 +274,7 @@ class DatabaseIntegrityView extends BaseScriptClass {
                        // Call the functionality
                        $refIndexObj = GeneralUtility::makeInstance(ReferenceIndex::class);
                        list(,$bodyContent) = $refIndexObj->updateIndex($testOnly);
-                       $this->view->assign('content', str_replace(LF, '<br/>', $bodyContent));
+                       $this->view->assign('content', str_replace('##LF##', '<br />', $bodyContent));
                }
        }
 
index d26c19f..2975046 100644 (file)
@@ -7,6 +7,7 @@ if (in_array('-e', $_SERVER['argv']) || in_array('-c', $_SERVER['argv'])) {
        $testOnly = in_array('-c', $_SERVER['argv']);
        $refIndexObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ReferenceIndex::class);
        list($headerContent, $bodyContent) = $refIndexObj->updateIndex($testOnly, !in_array('-s', $_SERVER['argv']));
+       $bodyContent = str_replace('##LF##', LF, $bodyContent);
 } else {
        echo '
 Options: