From 917377ed177ab48b7c302a355c43dd93d6458416 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Thu, 28 Apr 2022 21:46:41 +0100 Subject: [PATCH] Remove meshcentral references in api --- api/v1/assets/create.php | 5 ----- api/v1/assets/update.php | 5 ----- 2 files changed, 10 deletions(-) diff --git a/api/v1/assets/create.php b/api/v1/assets/create.php index 4c1d7ebf..1d79b843 100644 --- a/api/v1/assets/create.php +++ b/api/v1/assets/create.php @@ -66,11 +66,6 @@ if(isset($_POST['asset_notes'])){ } else{ $notes = ''; } -if(isset($_POST['asset_meshcentral_id'])){ - $meshcentral_id = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['asset_meshcentral_id']))); -} else{ - $meshcentral_id = ''; -} if(isset($_POST['asset_vendor_id'])){ $vendor = intval($_POST['asset_vendor_id']); } else{ diff --git a/api/v1/assets/update.php b/api/v1/assets/update.php index c56549a4..cc7c8b78 100644 --- a/api/v1/assets/update.php +++ b/api/v1/assets/update.php @@ -79,11 +79,6 @@ if(!empty($asset_id)){ } else{ $notes = $row['asset_notes']; } - if(isset($_POST['asset_meshcentral_id'])){ - $meshcentral_id = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['asset_meshcentral_id']))); - } else{ - $meshcentral_id = $row['asset_meshcentral_id']; - } if(isset($_POST['asset_vendor_id'])){ $vendor = intval($_POST['asset_vendor_id']); } else{