Fix Exports while in Client Overview some were failing due to missing client_id var and some were not logging the client_id if in the client section

This commit is contained in:
johnnyq
2025-06-26 15:49:49 -04:00
parent e8a3309822
commit 6b0855cff8
9 changed files with 24 additions and 15 deletions

View File

@@ -321,6 +321,7 @@ if (isset($_POST['export_credentials_csv'])) {
$client_query = "AND credential_client_id = $client_id";
} else {
$client_query = '';
$client_id = 0;
}
//get records from database
@@ -360,7 +361,7 @@ if (isset($_POST['export_credentials_csv'])) {
}
// Logging
logAction("Credential", "Export", "$session_name exported $num_rows credential(s) to a CSV file");
logAction("Credential", "Export", "$session_name exported $num_rows credential(s) to a CSV file", $client_id);
exit;