1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Merge pull request #505 from eduardocruz/patch-1

Update on AccountController.php - fix CSV Client import
This commit is contained in:
Hillel Coren 2015-11-04 17:11:53 +02:00
commit 8abdc4a43f

View File

@ -38,6 +38,7 @@ use App\Models\Industry;
use App\Models\InvoiceDesign;
use App\Models\TaxRate;
use App\Ninja\Repositories\AccountRepository;
use App\Ninja\Repositories\ClientRepository;
use App\Ninja\Repositories\ReferralRepository;
use App\Ninja\Mailers\UserMailer;
use App\Ninja\Mailers\ContactMailer;
@ -710,7 +711,8 @@ class AccountController extends BaseController
continue;
}
$this->dispatch(new CreateClient($data));
$clientRepository = new ClientRepository();
$clientRepository->save($data);
$count++;
}