From 8b52323a4495aec335607213622ada4529447c22 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sun, 23 Jan 2022 21:40:44 +0000 Subject: [PATCH] Fix networks duplicating --- client_services.php | 2 ++ service_view_modal.php | 62 ++++++++++++++++++++++++++++++++---------- 2 files changed, 50 insertions(+), 14 deletions(-) diff --git a/client_services.php b/client_services.php index 3e05ec55..31ff1e03 100644 --- a/client_services.php +++ b/client_services.php @@ -85,6 +85,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); ON service_assets.asset_id = logins.login_asset_id LEFT JOIN networks ON assets.asset_network_id = networks.network_id + LEFT JOIN locations + ON assets.asset_location_id = locations.location_id WHERE service_id = '$service_id'"); // Associated logins diff --git a/service_view_modal.php b/service_view_modal.php index 7f627611..28b49958 100644 --- a/service_view_modal.php +++ b/service_view_modal.php @@ -38,34 +38,68 @@ +
Networks
+ + + + + -
Networks
+
Locations
-
Locations
- -