Merge pull request #2728 from lonvia/allow-more-partials

Allow search for partials consisting of 3 or more words
This commit is contained in:
Sarah Hoffmann 2022-05-27 18:09:11 +02:00 committed by GitHub
commit ecee5cf801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,6 +264,8 @@ class SearchDescription
{
if (empty($this->aName)) {
$this->bNameNeedsAddress = $bNeedsAddress;
} elseif ($bSearchable && count($this->aName) >= 2) {
$this->bNameNeedsAddress = false;
} else {
$this->bNameNeedsAddress &= $bNeedsAddress;
}