[BUGFIX] ext:aboutmodules broken link to ext:reports 76/17876/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 30 Jan 2013 21:11:36 +0000 (22:11 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 30 Jan 2013 21:18:06 +0000 (22:18 +0100)
ext:aboutmodules shows some message box if ext:reports
is installed and found some serious problem. The message
box has a link to reports module that is broken and fixed
by the patch.

Change-Id: I7d0b2b6573eb960028cb1de0463808eaf5860fbc
Resolves: #40218
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/17876
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/reports/Classes/Report/Status/WarningMessagePostProcessor.php

index 203a75e..b0f695c 100644 (file)
@@ -49,7 +49,17 @@ class WarningMessagePostProcessor {
                                // Display a message that there's something wrong and that
                                // the admin should take a look at the detailed status report
                                $GLOBALS['LANG']->includeLLFile('EXT:reports/reports/locallang.xml');
-                               $warningMessages['tx_reports_status_notification'] = sprintf($GLOBALS['LANG']->getLL('status_problemNotification'), '<a href="javascript:top.goToModule(\'tools_txreportsM1\', 1, \'&SET[function]=tx_reports.status\');">', '</a>');
+                               $reportModuleIdentifier = 'tools_ReportsTxreportsm1';
+                               $reportModuleParameters = array(
+                                       'tx_reports_tools_reportstxreportsm1[extension]=tx_reports',
+                                       'tx_reports_tools_reportstxreportsm1[report]=status',
+                                       'tx_reports_tools_reportstxreportsm1[action]=detail',
+                                       'tx_reports_tools_reportstxreportsm1[controller]=Report',
+                               );
+                               $warningMessages['tx_reports_status_notification'] = sprintf(
+                                       $GLOBALS['LANG']->getLL('status_problemNotification'),
+                                       '<a href="javascript:top.goToModule(\'' . $reportModuleIdentifier . '\', 1, \'&' . implode('&', $reportModuleParameters) .  '\');">', '</a>'
+                               );
                        }
                }
        }