Skip to content

Commit

Permalink
Merge pull request #41933 from nextcloud/41729-manual-backport
Browse files Browse the repository at this point in the history
[stable28]  Enable new global search by default #41729
  • Loading branch information
Fenn-CS committed Nov 30, 2023
2 parents 16190c7 + bd117d2 commit 46fa012
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/private/TemplateLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,8 @@ public function __construct($renderAs, $appId = '') {

$this->initialState->provideInitialState('core', 'active-app', $this->navigationManager->getActiveEntry());
$this->initialState->provideInitialState('core', 'apps', $this->navigationManager->getAll());
/*
* NB : Unified search enabled, defaults to true since new advanced search is
* unstable. Once we think otherwise, the default should be false.
*/
if ($this->config->getSystemValueBool('unified_search.enabled', true)) {

if ($this->config->getSystemValueBool('unified_search.enabled', false)) {
$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)1));
$this->initialState->provideInitialState('unified-search', 'live-search', $this->config->getAppValue('core', 'unified-search.live-search', 'yes') === 'yes');
Expand Down

0 comments on commit 46fa012

Please sign in to comment.