Add the asset to the cache after creating it as well.

This commit is contained in:
Daniel Meltzer 2016-05-18 22:37:59 -05:00
parent 3b6f78f30c
commit 1e948eabc8

View file

@ -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()) {