If an extended search result shows a group of people with different phone number types as primary in some cases contacts a shown with the phone number of other contacts.
The pattern is as follows: Start out with an alphabetical ascending list (makes it easier to find the pattern)
We need to groups of contacts: a) contacts that have a primary number of type 'mobile' set (no matter if private or office) b) contacts that have a primary number of type 'phone' set (no matter if private or office)
If a contact of group a) directly preceeds contacts of group b) all contacts of group b) are wrongly assigned with the number of contact a) until another contact of group a) is in the list - which than has it's correct phone number set.
meaning we eg. see a pattern like:
id 1 - primary of type phone - number 1 id 2 - primary of type mobile - number 1 id 3 - primary of type mobile - number 1 id 4 - primary of type mobile - number 1 id 5 - primary of type phone - number 2 id 6 - primary of type phone - number 3 id 7 - primary of type mobile - number 3 ...
and so on.. I could not see a pattern in terms of times repeating a certain number, as far as I could test it the problem exclusively depends on the type of phone number made primary..
Has anybody noticed this behaviour before? Can anybody help reproducing this behaviour on a new/demo installation?
Environment information
Browser: Firefox 73.0.1 (64-Bit) Ubuntu 19.10 CiviCRM: Master/5.20.0 PHP: 7.2 CMS: Drupal 7.68 Database: MariaDB 10.1 Web Server: Apache 2.4