[TASK] Crop scheduler additional information 94/39594/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 18 May 2015 08:05:14 +0000 (10:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 20 May 2015 10:49:05 +0000 (12:49 +0200)
Crop additional task information based on `titleLen`.

Resolves: #67002
Releases: master
Change-Id: I16b2f7106b8485989e1df2ab4958d61308a8e3c7
Reviewed-on: http://review.typo3.org/39594
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index 0e1bd9c..14a80de 100644 (file)
@@ -1011,7 +1011,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                                                        $name .= $this->renderTaskProgressBar($progress);
                                                }
                                                if (!empty($additionalInformation)) {
-                                                       $name .= '<div class="additional-information">[' . htmlspecialchars($additionalInformation) . ']</div>';
+                                                       $name .= '<div class="additional-information"><span title="' . htmlspecialchars($additionalInformation) . '">[' . GeneralUtility::fixed_lgd_cs(htmlspecialchars($additionalInformation), (int)$this->getBackendUser()->uc['titleLen']) . ']</span></div>';
                                                }
                                                // Check if task currently has a running execution
                                                if (!empty($schedulerRecord['serialized_executions'])) {