Add the asset to the cache after creating it as well.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user