mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #5929 from turbo124/v5-develop
Improve check data scripts
This commit is contained in:
commit
d8f5aeb85c
@ -241,7 +241,7 @@ class CheckData extends Command
|
|||||||
|
|
||||||
if ($this->option('fix') == 'true') {
|
if ($this->option('fix') == 'true') {
|
||||||
foreach ($clients as $client) {
|
foreach ($clients as $client) {
|
||||||
$this->logMessage("Fixing missing contacts #{$client->id}");
|
$this->logMessage("Fixing missing primary contacts #{$client->id}");
|
||||||
|
|
||||||
$new_contact = ClientContactFactory::create($client->company_id, $client->user_id);
|
$new_contact = ClientContactFactory::create($client->company_id, $client->user_id);
|
||||||
$new_contact->client_id = $client->id;
|
$new_contact->client_id = $client->id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user