mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Handle deleted account in recurrence
This commit is contained in:
parent
5c85088a23
commit
26ae669659
@ -33,6 +33,11 @@ trait HasRecurrence
|
|||||||
}
|
}
|
||||||
|
|
||||||
$account = $this->account;
|
$account = $this->account;
|
||||||
|
|
||||||
|
if (! $account) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$timezone = $account->getTimezone();
|
$timezone = $account->getTimezone();
|
||||||
|
|
||||||
if (! $this->start_date || Carbon::parse($this->start_date, $timezone)->isFuture()) {
|
if (! $this->start_date || Carbon::parse($this->start_date, $timezone)->isFuture()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user