mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 19:34:52 +00:00
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:
@@ -1216,6 +1216,7 @@ if (isset($_POST['export_contacts_csv'])) {
|
||||
$client_query = "AND contact_client_id = $client_id";
|
||||
} else {
|
||||
$client_query = '';
|
||||
$client_id = 0; //Logging
|
||||
}
|
||||
|
||||
//Contacts
|
||||
@@ -1252,7 +1253,7 @@ if (isset($_POST['export_contacts_csv'])) {
|
||||
}
|
||||
|
||||
//Logging
|
||||
logAction("Contact", "Export", "$session_name exported $num_rows contact(s) to a CSV file");
|
||||
logAction("Contact", "Export", "$session_name exported $num_rows contact(s) to a CSV file", $client_id);
|
||||
|
||||
exit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user