Commit 9c571908 authored by Johan Cwiklinski's avatar Johan Cwiklinski Committed by Johan Cwiklinski
Browse files

Do not handle assets for refused equipments

parent a952b242
......@@ -35,6 +35,7 @@ namespace Glpi\Inventory\Asset;
use Auth;
use CommonDBTM;
use Glpi\Inventory\Conf;
use RefusedEquipment;
use RuleImportAssetCollection;
use RuleImportEntityCollection;
use RuleMatchedLog;
......@@ -570,12 +571,13 @@ abstract class MainAsset extends InventoryAsset
}
}
$this->handleAssets();
$input = (array)$val;
$this->item->update(Toolbox::addslashes_deep($input), $this->withHistory());
if (!($this->item instanceof RefusedEquipment)) {
$this->handleAssets();
}
$rulesmatched = new RuleMatchedLog();
$inputrulelog = [
'date' => date('Y-m-d H:i:s'),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment