From 6325301a00d9100b69c132a47e60a9c0ca4f711c Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 24 Aug 2023 14:44:50 -0400 Subject: [PATCH] Remove Licene Actions from Contact details this should be modified in licneses also removed the Login link with the asset as this can cause dupelicate assets if more than 1 password is assigned to an asset. This is due to 1 to 1 relation and really needs to be many to many relationship --- client_contact_details.php | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/client_contact_details.php b/client_contact_details.php index a0fd4e6a..d3a56f8b 100644 --- a/client_contact_details.php +++ b/client_contact_details.php @@ -42,7 +42,7 @@ if (isset($_GET['contact_id'])) { $auth_method = nullable_htmlentities($row['contact_auth_method']); // Related Assets Query - $sql_related_assets = mysqli_query($mysqli, "SELECT * FROM assets LEFT JOIN logins ON logins.login_asset_id = assets.asset_id WHERE asset_contact_id = $contact_id ORDER BY asset_name DESC"); + $sql_related_assets = mysqli_query($mysqli, "SELECT * FROM assets WHERE asset_contact_id = $contact_id ORDER BY asset_name DESC"); $asset_count = mysqli_num_rows($sql_related_assets); // Related Logins Query @@ -376,7 +376,6 @@ if (isset($_GET['contact_id'])) { Type License Type Seats - Action @@ -425,29 +424,10 @@ if (isset($_GET['contact_id'])) { - - -