mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix for check data
This commit is contained in:
parent
b03d7c30dc
commit
887a1fa92d
@ -125,10 +125,14 @@ class CheckData extends Command
|
||||
|
||||
if ($this->option('fix') == 'true') {
|
||||
foreach ($invoices as $invoice) {
|
||||
$dispatcher = $invoice->getEventDispatcher();
|
||||
if ($invoice->is_deleted) {
|
||||
$invoice->unsetEventDispatcher();
|
||||
}
|
||||
$invoice->markSent();
|
||||
$invoice->is_public = true;
|
||||
$invoice->save();
|
||||
$invoice->markInvitationsSent();
|
||||
$invoice->setEventDispatcher($dispatcher);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user