summaryrefslogtreecommitdiff
path: root/app/Services/ChartService.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-11-17 23:22:27 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-11-17 23:32:16 +0000
commit1afbbc50a65bb73de1d13dc18d669efe80119058 (patch)
tree58d7cbf8f46f8281bb670b84467f48e0f178ae64 /app/Services/ChartService.php
parent8435e0e5d1a3fd6d082e24650ea6f78371347784 (diff)
downloadwebtrees-1afbbc50a65bb73de1d13dc18d669efe80119058.tar.gz
webtrees-1afbbc50a65bb73de1d13dc18d669efe80119058.tar.bz2
webtrees-1afbbc50a65bb73de1d13dc18d669efe80119058.zip
Fix: #2653 add ability to re-order parent families; make the first one the primary family
Diffstat (limited to 'app/Services/ChartService.php')
-rw-r--r--app/Services/ChartService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Services/ChartService.php b/app/Services/ChartService.php
index 03a70eaccf..41c2125b22 100644
--- a/app/Services/ChartService.php
+++ b/app/Services/ChartService.php
@@ -51,7 +51,7 @@ class ChartService
break;
}
- $family = $ancestors[$sosa_stradonitz_number]->primaryChildFamily();
+ $family = $ancestors[$sosa_stradonitz_number]->childFamilies()->first();
if ($family instanceof Family) {
if ($family->husband() instanceof Individual) {