Merge pull request #2511 from lonvia/fix-combination-error-needs-address

Fix boolean combination of NeedsAddress flag
This commit is contained in:
Sarah Hoffmann
2021-11-06 12:11:55 +01:00
committed by GitHub

View File

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