From a53f69ed17e90410504a330f826fb6f974bbaa0f Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 17 Dec 2022 23:59:26 +0000 Subject: [PATCH] Update software export: update reference to non-existent db column & add key to export --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index f350e1fd..8b05d9f5 100644 --- a/post.php +++ b/post.php @@ -5188,12 +5188,12 @@ if(isset($_GET['export_client_software_csv'])){ $f = fopen('php://memory', 'w'); //set column headers - $fields = array('Name', 'Type', 'License', 'Notes'); + $fields = array('Name', 'Type', 'License', 'Key', 'Notes'); fputcsv($f, $fields, $delimiter); //output each row of the data, format line as csv and write to file pointer while($row = $sql->fetch_assoc()){ - $lineData = array($row['software_name'], $row['software_type'], $row['software_license'], $row['software_notes']); + $lineData = array($row['software_name'], $row['software_type'], $row['software_license_type'], $row['software_key'], $row['software_notes']); fputcsv($f, $lineData, $delimiter); }