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:
parent
5c85088a23
commit
26ae669659
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user