From 309ad724ecfb7496baa48d3973d52fe70decefb9 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 29 Mar 2025 16:22:48 -0400 Subject: [PATCH] Fix client export to only show licnesed software by the selected client only --- post/user/client.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/post/user/client.php b/post/user/client.php index 4ab99da6..63f9dc63 100644 --- a/post/user/client.php +++ b/post/user/client.php @@ -716,6 +716,8 @@ if (isset($_POST["export_client_pdf"])) { software ON software_contacts.software_id = software.software_id WHERE software_archived_at IS NULL AND contact_archived_at IS NULL + AND software_client_id = $client_id + AND contact_client_id = $client_id ORDER BY contact_name, software_name;" ); @@ -732,6 +734,8 @@ if (isset($_POST["export_client_pdf"])) { software ON software_assets.software_id = software.software_id WHERE software_archived_at IS NULL AND asset_archived_at IS NULL + AND software_client_id = $client_id + AND asset_client_id = $client_id ORDER BY asset_name, software_name;" );