From 1e948eabc85b394de2da75a93ef00454fa07d871 Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Wed, 18 May 2016 22:37:59 -0500 Subject: [PATCH] Add the asset to the cache after creating it as well. --- app/Console/Commands/ObjectImportCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ObjectImportCommand.php b/app/Console/Commands/ObjectImportCommand.php index 288e45ec2c..616b700f43 100644 --- a/app/Console/Commands/ObjectImportCommand.php +++ b/app/Console/Commands/ObjectImportCommand.php @@ -568,7 +568,7 @@ class ObjectImportCommand extends Command { $asset->supplier_id = $supplier->id; $asset->notes = $item["notes"]; $asset->image = $asset_image; - + $this->assets->add($asset); if (!$this->option('testrun')) { if ($asset->save()) {