diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-04-14 18:39:16 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-04-14 18:39:16 +0100 |
| commit | b61651ba1c1113308fe6c827391759dc96b3f772 (patch) | |
| tree | 2cd9bf337c6a0a3ea2207f4b430b9332b35d3ed2 /resources/views | |
| parent | e669bb4bc4fd05c009a4ba2795f411cb9d3260d7 (diff) | |
| download | webtrees-b61651ba1c1113308fe6c827391759dc96b3f772.tar.gz webtrees-b61651ba1c1113308fe6c827391759dc96b3f772.tar.bz2 webtrees-b61651ba1c1113308fe6c827391759dc96b3f772.zip | |
Can only show relationships between individuals
Diffstat (limited to 'resources/views')
| -rw-r--r-- | resources/views/fact.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/fact.phtml b/resources/views/fact.phtml index 4f34e2b5cd..6920b2a199 100644 --- a/resources/views/fact.phtml +++ b/resources/views/fact.phtml @@ -118,7 +118,7 @@ if ($tag === 'MARR') { ->first(static fn (ModuleInterface $module):bool => $module instanceof RelationshipsChartModule) ?> - <?php if ($module instanceof RelationshipsChartModule) : ?> + <?php if ($module instanceof RelationshipsChartModule && $record instanceof Individual) : ?> — <a href="<?= $module->chartUrl($fact->target(), ['xref2' => $record->xref()]) ?>" rel="nofollow"> <?= app(RelationshipService::class)->getCloseRelationshipName($fact->target(), $record) ?> </a> |
