1
0
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:
Hillel Coren 2017-08-02 21:26:56 +03:00
parent b03d7c30dc
commit 887a1fa92d

View File

@ -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);
}
}
}