Skip to content

Commit

Permalink
fixed #155
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Dec 18, 2017
1 parent 1e096f7 commit b68c840
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/Expenses/Vendors.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ public function import(ImportFile $import)

foreach ($rows as $row) {
$data = $row->toArray();

if (empty($data['email'])) {
$data['email'] = '';
}

$data['company_id'] = session('company_id');

Vendor::create($data);
Expand Down

0 comments on commit b68c840

Please sign in to comment.