From ff02ab0ceaff8d6bd46f4a84a634e159b9841d7c Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 23 Jan 2026 13:06:06 -0500 Subject: [PATCH] Show Document Updated at instead of created at. This fixes where it should show the initial document creation date instead of the most updated date, also renamed uploaded column to updated --- agent/document_details.php | 2 +- agent/files.php | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/agent/document_details.php b/agent/document_details.php index 0e8d7044..9556ed54 100644 --- a/agent/document_details.php +++ b/agent/document_details.php @@ -115,7 +115,7 @@ $page_title = $row['document_name'];
Date: - +
diff --git a/agent/files.php b/agent/files.php index 469d4296..c724c42a 100644 --- a/agent/files.php +++ b/agent/files.php @@ -305,6 +305,7 @@ if ($view == 1) { $document_description = nullable_htmlentities($row['document_description']); $document_created_by_name = nullable_htmlentities($row['user_name']); $document_created_at = $row['document_created_at']; + $document_updated_at = $row['document_updated_at']; $document_archived_at = $row['document_archived_at']; $items[] = [ @@ -314,7 +315,7 @@ if ($view == 1) { 'description' => $document_description, 'mime' => 'Document', 'size' => null, - 'created_at' => $document_created_at, + 'updated_at' => $document_updated_at, 'created_by' => $document_created_by_name, 'archived_at' => $document_archived_at, ]; @@ -631,7 +632,7 @@ $num_root_items = intval($row_root_files['num']) + intval($row_root_docs['num']) - Uploaded + Updated @@ -765,7 +766,8 @@ $num_root_items = intval($row_root_files['num']) + intval($row_root_docs['num']) $document_name = $item['name']; $document_description = $item['description']; $document_created_by_name = $item['created_by']; - $document_created_at = date("m/d/Y", strtotime($item['created_at'])); + $document_created_at = date("m/d/Y", strtotime($item['updated_at'])); + //$document_updated_at = date("m/d/Y", strtotime($item['updated_at'])); $document_archived_at = $item['archived_at']; $sql_shared = mysqli_query(