From 577c1936612a3a9a36cd2968d7511adf6fba3fde Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 2 Nov 2015 19:27:07 -0800 Subject: [PATCH] Fixed bug in location import --- app/commands/AssetImportCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/commands/AssetImportCommand.php b/app/commands/AssetImportCommand.php index 8b74920661..99e171a68d 100644 --- a/app/commands/AssetImportCommand.php +++ b/app/commands/AssetImportCommand.php @@ -256,9 +256,11 @@ class AssetImportCommand extends Command { $this->comment('Location '.$user_asset_location.' already exists'); } else { + $location = new Location(); + if ($user_asset_location!='') { - $location = new Location(); + $location->name = e($user_asset_location); $location->address = ''; $location->city = '';