fix: update journal date on activity update (#3087)

This commit is contained in:
Lukas Rosenstock
2019-10-23 21:16:04 +02:00
committed by Alexis Saettler
parent a7fd339750
commit 11ba80da90
@@ -158,6 +158,11 @@ class ActivitiesController extends Controller
$newContact->activities()->attach($activity, ['account_id' => $account->id]);
}
// Update the journal entry (in case date has changed)
$activity->journalEntry->update([
'date' => $activity->date_it_happened,
]);
return redirect()->route('people.show', $contact)
->with('success', trans('people.activities_update_success'));
}