1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Handle deleted account in recurrence

This commit is contained in:
Hillel Coren 2021-08-22 07:41:06 +03:00
parent 5c85088a23
commit 26ae669659

View File

@ -33,6 +33,11 @@ trait HasRecurrence
}
$account = $this->account;
if (! $account) {
return false;
}
$timezone = $account->getTimezone();
if (! $this->start_date || Carbon::parse($this->start_date, $timezone)->isFuture()) {