When dealing with multiple partial terms, only keep the
flag, when all partial terms are so frequent as to need
an address.
Fixes #2510.
if (empty($this->aName)) {
$this->bNameNeedsAddress = $bNeedsAddress;
} else {
if (empty($this->aName)) {
$this->bNameNeedsAddress = $bNeedsAddress;
} else {
- $this->bNameNeedsAddress |= $bNeedsAddress;
+ $this->bNameNeedsAddress &= $bNeedsAddress;
}
if ($bSearchable) {
$this->aName[$iId] = $iId;
}
if ($bSearchable) {
$this->aName[$iId] = $iId;