From f58551b6929b25c4b803a909da1513c3da77c18e Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Tue, 13 Dec 2022 14:35:30 +0700 Subject: [PATCH] update header if start / end date changed / an activity deleted --- app/Models/Activity.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index 7e06d88..a673524 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -78,9 +78,7 @@ class Activity extends Model $data->updatePersentaseProgress(); $data->updateCostActual(); } - if($this->start_date != request()->start_date || $this->end_date != request()->end_date) { - $data->updateStartEndDateHeader(); - } + $data->updateStartEndDateHeader(); }); }