From 540512a1569bb66fb972851b287615d990324217 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 28 Nov 2025 15:26:26 -0500 Subject: [PATCH] remove folder location vars as no longer needed as files and documents have been merged --- agent/document_details.php | 28 ++++++++++++------------- agent/modals/document/document_edit.php | 4 ++-- agent/modals/folder/folder_add.php | 2 -- functions.php | 12 ++++------- 4 files changed, 20 insertions(+), 26 deletions(-) diff --git a/agent/document_details.php b/agent/document_details.php index d6b8d347..45dd35b4 100644 --- a/agent/document_details.php +++ b/agent/document_details.php @@ -17,7 +17,7 @@ if (isset($_GET['document_id'])) { $folder_location = 0; -$sql_document = mysqli_query($mysqli, "SELECT * FROM documents +$sql_document = mysqli_query($mysqli, "SELECT * FROM documents LEFT JOIN folders ON document_folder_id = folder_id LEFT JOIN users ON document_created_by = user_id WHERE document_client_id = $client_id AND document_id = $document_id @@ -51,10 +51,10 @@ $page_title = $row['document_name']; @@ -170,9 +170,9 @@ $page_title = $row['document_name']; - @@ -208,7 +208,7 @@ $page_title = $row['document_name'];
- + diff --git a/agent/modals/document/document_edit.php b/agent/modals/document/document_edit.php index 59805148..14112bf9 100644 --- a/agent/modals/document/document_edit.php +++ b/agent/modals/document/document_edit.php @@ -5,7 +5,7 @@ require_once '../../../includes/modal_header.php'; $document_id = intval($_GET['id']); $sql = mysqli_query($mysqli, "SELECT * FROM documents WHERE document_id = $document_id LIMIT 1"); - + $row = mysqli_fetch_array($sql); $document_name = nullable_htmlentities($row['document_name']); $document_description = nullable_htmlentities($row['document_description']); @@ -45,7 +45,7 @@ ob_start(); -