aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-11-11 01:35:02 +0000
committerChristopher Ng <chrng8@gmail.com>2022-11-11 01:35:02 +0000
commit6c09155e13826f978ddff906c77e9711b1563ac6 (patch)
tree78a237329fb1fbf65584825916c0395ace49c5d2 /lib/private/TemplateLayout.php
parentc1ba14ad00cc751f1e5aed4794b7f673462d0a00 (diff)
downloadnextcloud-server-6c09155e13826f978ddff906c77e9711b1563ac6.tar.gz
nextcloud-server-6c09155e13826f978ddff906c77e9711b1563ac6.zip
Allow single character search by default
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index d041db2a7c2..e043f79745a 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -102,7 +102,7 @@ class TemplateLayout extends \OC_Template {
$this->initialState->provideInitialState('core', 'active-app', $this->navigationManager->getActiveEntry());
$this->initialState->provideInitialState('core', 'apps', $this->navigationManager->getAll());
$this->initialState->provideInitialState('unified-search', 'limit-default', (int)$this->config->getAppValue('core', 'unified-search.limit-default', (string)SearchQuery::LIMIT_DEFAULT));
- $this->initialState->provideInitialState('unified-search', 'min-search-length', (int)$this->config->getAppValue('core', 'unified-search.min-search-length', (string)2));
+ $this->initialState->provideInitialState('unified-search', 'min-search-length', (int)$this->config->getAppValue('core', 'unified-search.min-search-length', (string)1));
$this->initialState->provideInitialState('unified-search', 'live-search', $this->config->getAppValue('core', 'unified-search.live-search', 'yes') === 'yes');
Util::addScript('core', 'unified-search', 'core');