mirror of
https://github.com/itflow-org/itflow
synced 2026-04-18 02:25:40 +00:00
Asset API - History
This commit is contained in:
@@ -27,6 +27,9 @@ if (!empty($asset_id)) {
|
||||
// Update Primary Interface
|
||||
mysqli_query($mysqli,"UPDATE asset_interfaces SET interface_mac = '$mac', interface_ip = '$ip', interface_network_id = $network WHERE interface_asset_id = $asset_id AND interface_primary = 1");
|
||||
|
||||
// Add to History
|
||||
mysqli_query($mysqli,"INSERT INTO asset_history SET asset_history_status = '$status', asset_history_description = 'API updated $name ($api_key_name)', asset_history_asset_id = $asset_id");
|
||||
|
||||
// Logging
|
||||
logAction("Asset", "Edit", "$name via API ($api_key_name)", $client_id);
|
||||
logAction("API", "Success", "Edited asset $name via API ($api_key_name)", $client_id);
|
||||
|
||||
Reference in New Issue
Block a user