PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 2.2.0
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v2.2.0
2.2.0 2.1.0 2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 All 43 releases
← All changes | app/Modules/MCP/Tools/TaskTools.php +6 -0 2.1.0 → 2.2.0 View file →
@@ -6,8 +6,9 @@
6 6 use FluentBoards\App\Models\Stage;
7 7 use FluentBoards\App\Models\Task;
8 8 use FluentBoards\App\Modules\MCP\Helpers\MCPHelper;
9 9 use FluentBoards\App\Services\Constant;
10 +use FluentBoards\App\Services\NotificationService;
10 11 use FluentBoards\App\Services\PermissionManager;
11 12 use FluentBoards\App\Services\TaskService;
12 13
13 14 /**
@@ -56,8 +57,10 @@
56 57 'due_date' => isset($params['due_date']) ? (array) $params['due_date'] : [],
57 58 ];
58 59
59 60 $paginated = (new TaskService())->getTableTasks($board->id, $args);
61 + // Every summary includes its stage; load once for the page instead of per task.
62 + $paginated->getCollection()->load('stage');
60 63
61 64 return [
62 65 'items' => MCPHelper::formatTaskList($paginated->items()),
63 66 'pagination' => [
@@ -267,8 +270,11 @@
267 270 $task = $task->reopen();
268 271 }
269 272
270 273 do_action('fluent_boards/task_stage_updated', $task, $oldStageId);
274 +
275 + $recipients = (new NotificationService())->filterAssigneeToSendEmail($task->id, Constant::BOARD_EMAIL_STAGE_CHANGE);
276 + $service->sendMailAfterTaskModify('stage_change', $recipients, $task->id);
271 277 }
272 278
273 279 do_action('fluent_boards/task_updated', $task, 'position');
274 280 MCPHelper::loadTaskDetails($task);