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.
This commit is contained in:
Sarah Hoffmann
2021-03-11 20:22:54 +01:00
parent 478dfb0639
commit d5e8c5e975

View File

@@ -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);