[TASK] Link scheduler class in list 71/41271/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 15 Jul 2015 11:44:34 +0000 (13:44 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 15 Jul 2015 12:12:01 +0000 (14:12 +0200)
To unify the usability of the scheduler and formengine,
the scheduler class should be linked too.

Change-Id: I6533f32e1b48e32dfb23bc7c906734ffde10e58a
Resolves: #68161
Releases: master
Reviewed-on: http://review.typo3.org/41271
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index 80b5ae9..1bc76f2 100644 (file)
@@ -951,7 +951,8 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                                }
 
                                foreach ($taskGroup['tasks'] as $schedulerRecord) {// Define action icons
-                                       $editAction = '<a class="btn btn-default" href="' . htmlspecialchars($this->moduleUri . '&CMD=edit&tx_scheduler[uid]=' . $schedulerRecord['uid']) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:edit', TRUE) . '" class="icon">' .
+                                       $link = htmlspecialchars($this->moduleUri . '&CMD=edit&tx_scheduler[uid]=' . $schedulerRecord['uid']);
+                                       $editAction = '<a class="btn btn-default" href="' . $link . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:edit', TRUE) . '" class="icon">' .
                                                IconUtility::getSpriteIcon('actions-document-open') . '</a>';
                                        if ((int)$schedulerRecord['disable'] === 1) {
                                                $translationKey = 'enable';
@@ -1093,7 +1094,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                                                if ($schedulerRecord['description'] !== '') {
                                                        $taskDesc = '<span class="description">' . nl2br(htmlspecialchars($schedulerRecord['description'])) . '</span>';
                                                }
-                                               $taskName = '<span class="name">' . $name . '</span>';
+                                               $taskName = '<span class="name"><a href="' . $link . '">' . $name . '</a></span>';
 
                                                $table[] =
                                                        '<tr class="' . ($showAsDisabled ? 'disabled' : '') . '">'