From d5e8c5e975b270a0839af1b54ef5308857d92225 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 11 Mar 2021 20:22:54 +0100 Subject: [PATCH] do not mix partial and full name terms If NameNonSearch already contains a partial term, then a full term must not be added to the Name list anymore. --- lib-php/SearchDescription.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index 436398cd..8e8e5acb 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -289,7 +289,7 @@ class SearchDescription $oSearch->aAddress[$iWordID] = $iWordID; $aNewSearches[] = $oSearch; } - } else { + } else if (empty($this->aNameNonSearch)) { $oSearch = clone $this; $oSearch->iSearchRank++; $oSearch->aName = array($iWordID => $iWordID); -- 2.39.5