Searched hist:"74 e78bfab8ffb29c4d4f68fcf89f1ced6f948eec" (Results 1 – 1 of 1) sorted by relevance
/webtrees/app/ |
H A D | Individual.php | 74e78bfab8ffb29c4d4f68fcf89f1ced6f948eec Mon Jul 09 10:07:27 UTC 2018 Jonathan Jaubart <dev@jaubart.com> Incorrect famid used in getPrimaryChildFamily (#1777)
The logic in `getPrimaryChildFamily` wrongly assumes that the key of the returned array is the Family Xref (whereas it is just the numercal index). As a consequence, $famid does not contain the correct value, and the checks are flawed (and will certainly fall back to the first family).
Looking at the code history, the bug seems quite old, but I guess that it has been a case rare enough for an individual to have multiple FAMC records, and the first not being the primary one, that it has not been reported before.
|