mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for check data
This commit is contained in:
parent
43550cd9d1
commit
6d851ca815
@ -125,10 +125,14 @@ class CheckData extends Command
|
|||||||
|
|
||||||
if ($this->option('fix') == 'true') {
|
if ($this->option('fix') == 'true') {
|
||||||
foreach ($invoices as $invoice) {
|
foreach ($invoices as $invoice) {
|
||||||
|
$dispatcher = $invoice->getEventDispatcher();
|
||||||
if ($invoice->is_deleted) {
|
if ($invoice->is_deleted) {
|
||||||
$invoice->unsetEventDispatcher();
|
$invoice->unsetEventDispatcher();
|
||||||
}
|
}
|
||||||
$invoice->markSent();
|
$invoice->is_public = true;
|
||||||
|
$invoice->save();
|
||||||
|
$invoice->markInvitationsSent();
|
||||||
|
$invoice->setEventDispatcher($dispatcher);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user