diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 142399ba..862d8936 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,7 @@ Changelog 1.8.5 (Unreleased) ------------------------- - Fix #249: Fix replaced method `friendship\Module::isEnabled()` +- Enh #241: Permalinks in tasks overview 1.8.4 (December 21, 2023) ------------------------- diff --git a/helpers/TaskUrl.php b/helpers/TaskUrl.php index a4c2f25b..9d06490e 100644 --- a/helpers/TaskUrl.php +++ b/helpers/TaskUrl.php @@ -74,9 +74,9 @@ public static function exportXlsx($container = null) return static::toRoute([static::ROUTE_EXPORT, 'format' => 'xlsx', 'container' => $container]); } - public static function viewTask(Task $task) + public static function viewTask(Task $task, $scheme = false) { - return static::container($task)->createUrl(static::ROUTE_VIEW_TASK, ['id' => $task->id]); + return static::container($task)->createUrl(static::ROUTE_VIEW_TASK, ['id' => $task->id], $scheme); } public static function viewTaskModal(Task $task, $cal = null) diff --git a/widgets/lists/views/taskListItem.php b/widgets/lists/views/taskListItem.php index 74bf2057..a3cd1003 100644 --- a/widgets/lists/views/taskListItem.php +++ b/widgets/lists/views/taskListItem.php @@ -66,6 +66,13 @@ Toggle Dropdown