Browse Source

update header if start / end date changed / an activity deleted

pull/3/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
fd0bc81d88
  1. 2
      app/Models/Activity.php

2
app/Models/Activity.php

@ -63,7 +63,7 @@ class Activity extends Model
$data->updatePersentaseProgress(); $data->updatePersentaseProgress();
$data->updateCostActual(); $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(); $data->updateStartEndDateHeader();
} }
}); });

Loading…
Cancel
Save