From e2d2571ad03030382e8bec1f6af153074a4feb27 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 5 Nov 2021 22:18:37 +0100 Subject: [PATCH] fix combination of NeedsAddress flag When dealing with multiple partial terms, only keep the flag, when all partial terms are so frequent as to need an address. Fixes #2510. --- 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 fcb87d43..e13a0e9d 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -257,7 +257,7 @@ class SearchDescription if (empty($this->aName)) { $this->bNameNeedsAddress = $bNeedsAddress; } else { - $this->bNameNeedsAddress |= $bNeedsAddress; + $this->bNameNeedsAddress &= $bNeedsAddress; } if ($bSearchable) { $this->aName[$iId] = $iId; -- 2.39.5