From e36eae506c433cbade42bc7155e7060de88f3c8e Mon Sep 17 00:00:00 2001 From: "fabio.norbutat" Date: Tue, 19 Oct 2021 14:43:14 +0200 Subject: [PATCH] [BUGFIX:BP:11.5] changed from always picking the 0 array value to pick always the first. Ports: #3068 --- Classes/Controller/Backend/Search/AbstractModuleController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/Backend/Search/AbstractModuleController.php b/Classes/Controller/Backend/Search/AbstractModuleController.php index 77ffe73a66..af77a23908 100644 --- a/Classes/Controller/Backend/Search/AbstractModuleController.php +++ b/Classes/Controller/Backend/Search/AbstractModuleController.php @@ -384,7 +384,7 @@ private function initializeFirstAvailableSolrCoreConnection(array $solrCoreConne if (empty($solrCoreConnections)) { return; } - $this->selectedSolrCoreConnection = $solrCoreConnections[0]; + $this->selectedSolrCoreConnection = array_shift($solrCoreConnections); $moduleData->setCore($this->selectedSolrCoreConnection->getAdminService()->getCorePath()); $this->moduleDataStorageService->persistModuleData($moduleData); }