From fd0bc81d88058dc0a6c6cb22cb10f5cc23d7380e Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Tue, 13 Dec 2022 15:02:53 +0700 Subject: [PATCH] update header if start / end date changed / an activity deleted --- app/Models/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index a673524..60cb164 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -63,7 +63,7 @@ class Activity extends Model $data->updatePersentaseProgress(); $data->updateCostActual(); } - if($this->start_date != request()->start_date || $this->end_date != request()->end_date) { + if($data->start_date != request()->start_date || $data->end_date != request()->end_date) { $data->updateStartEndDateHeader(); } });