diff --git a/client_document_add_modal.php b/client_document_add_modal.php index 1b8683ef..0f43c3f8 100644 --- a/client_document_add_modal.php +++ b/client_document_add_modal.php @@ -43,7 +43,7 @@ function display_folder_options($parent_folder_id, $client_id, $indent = 0) { global $mysqli; - $sql_folders = mysqli_query($mysqli, "SELECT * FROM folders WHERE parent_folder = $parent_folder_id AND folder_client_id = $client_id ORDER BY folder_name ASC"); + $sql_folders = mysqli_query($mysqli, "SELECT * FROM folders WHERE parent_folder = $parent_folder_id AND folder_location = 0 AND folder_client_id = $client_id ORDER BY folder_name ASC"); while ($row = mysqli_fetch_array($sql_folders)) { $folder_id = intval($row['folder_id']); $folder_name = nullable_htmlentities($row['folder_name']); diff --git a/client_document_bulk_move_modal.php b/client_document_bulk_move_modal.php index 01d7311f..2fe8a524 100644 --- a/client_document_bulk_move_modal.php +++ b/client_document_bulk_move_modal.php @@ -19,7 +19,7 @@ / "> Rename - - Create Sub-Folder - @@ -254,7 +254,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); // Include the rename and create subfolder modals require "folder_rename_modal.php"; - require "folder_sub_create_modal.php"; if ($subfolder_count > 0) { // Display subfolders diff --git a/folder_create_modal.php b/folder_create_modal.php index 8d924f23..1323d5e5 100644 --- a/folder_create_modal.php +++ b/folder_create_modal.php @@ -2,7 +2,7 @@