From 38a82962b0e9f105c6f5b278da105f1c5fea21eb Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 25 Nov 2022 08:46:54 -0700 Subject: [PATCH] Filemanager: Fix anonymous share stopped showing subdirectories on refresh Broken by 28113048332c851691781c9d548c4662a9184336 --- filemanager/src/Sharing/AnonymousList.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filemanager/src/Sharing/AnonymousList.php b/filemanager/src/Sharing/AnonymousList.php index 5b659f3222..49045ae121 100644 --- a/filemanager/src/Sharing/AnonymousList.php +++ b/filemanager/src/Sharing/AnonymousList.php @@ -145,6 +145,9 @@ class AnonymousList extends filemanager_ui */ function get_rows(&$query, &$rows) { + // We turned off filter but still need to use the value + $query['filter'] = ''; + // Check for navigating outside share, redirect back to share if (!empty($query['path']) && (!Vfs::stat($query['path'], false) || !Vfs::is_dir($query['path']) || !Vfs::check_access($query['path'], Vfs::READABLE))) {