PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 2.1.0
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v2.1.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 1.41 All 42 releases
← All changes | app/Hooks/Handlers/NotificationHandler.php +7 -8 1.95.22.1.0 View file →
@@ -158,19 +158,18 @@
158 158 $notification->users()->attach($userIdsWhoGetNotification);
159 159 }
160 160 }
161 161
162 - public function changeTitleOrDescriptionNotification($task, $col, $oldTask)
162 + public function changeTitleNotification($task, $col, $oldTask)
163 163 {
164 + if ($col !== 'title') {
165 + return;
166 + }
167 +
164 168 $userIdsWhoGetNotification = $this->findUsersWhoWillGetNotification($task);
165 169 if(count($userIdsWhoGetNotification) > 0){
166 - if($col == 'title'){
167 - $action = 'task_title_updated';
168 - $message = $task->title;
169 - }else{
170 - $action = 'task_description_updated';
171 - $message = $task->description;
172 - }
170 + $action = 'task_title_updated';
171 + $message = $task->title;
173 172 $notification = $this->createNotification($task, Constant::OBJECT_TYPE_BOARD_NOTIFICATION, $action, $message);
174 173 $notification->users()->attach($userIdsWhoGetNotification);
175 174 }
176 175 }