From 67e68f86f7b1c7851194cd5c50fbb1141969a85c Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 4 Mar 2020 13:53:26 -0700 Subject: [PATCH] Vfs: Include original search term in vfs_options in addition to regex --- filemanager/inc/class.filemanager_ui.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index b8addc7d6d..4de5318329 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -11,11 +11,10 @@ */ use EGroupware\Api; -use EGroupware\Api\Link; -use EGroupware\Api\Framework; use EGroupware\Api\Egw; use EGroupware\Api\Etemplate; - +use EGroupware\Api\Framework; +use EGroupware\Api\Link; use EGroupware\Api\Vfs; /** @@ -1023,6 +1022,10 @@ class filemanager_ui { $vfs_options['mime'] = $query['col_filter']['mime']; } + if($namefilter) + { + $vfs_options['name'] = $query['search']; + } return $vfs_options; }