diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2022-11-14 19:59:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 19:59:38 -0800 |
commit | ccb30e7825dd0ff163613f8db9f6558ab33c8592 (patch) | |
tree | 260b64c3188572b93bfab75766ab5e844784e44e /lib | |
parent | ad446daae00f7618a33c89c5bcc52f923dce35c9 (diff) | |
parent | 6c09155e13826f978ddff906c77e9711b1563ac6 (diff) | |
download | nextcloud-server-ccb30e7825dd0ff163613f8db9f6558ab33c8592.tar.gz nextcloud-server-ccb30e7825dd0ff163613f8db9f6558ab33c8592.zip |
Merge pull request #35091 from nextcloud/enh/a11y-single-char-search
Allow single character search by default
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 2 |
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'); |