summaryrefslogtreecommitdiff
path: root/app/Module/IndividualFactsTabModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-07-09 21:15:24 +0100
committerGreg Roach <fisharebest@gmail.com>2015-07-09 21:15:24 +0100
commit3b5d3a3eab6f7f0281010ddb713e7e6d1092edd6 (patch)
tree63a747f646cf9567e3de7f969e993dc832c98559 /app/Module/IndividualFactsTabModule.php
parent9152e6f4a92fd869ef51e0e6d1d55eb974c26232 (diff)
downloadwebtrees-3b5d3a3eab6f7f0281010ddb713e7e6d1092edd6.tar.gz
webtrees-3b5d3a3eab6f7f0281010ddb713e7e6d1092edd6.tar.bz2
webtrees-3b5d3a3eab6f7f0281010ddb713e7e6d1092edd6.zip
Fix #439 - ASSO/RELA of other individuals
Diffstat (limited to 'app/Module/IndividualFactsTabModule.php')
-rw-r--r--app/Module/IndividualFactsTabModule.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/Module/IndividualFactsTabModule.php b/app/Module/IndividualFactsTabModule.php
index 6e9a7a541c..2d04b55757 100644
--- a/app/Module/IndividualFactsTabModule.php
+++ b/app/Module/IndividualFactsTabModule.php
@@ -514,20 +514,6 @@ class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterf
}
} else {
$factrec .= "\n2 _ASSO @" . $associate->getXref() . '@';
- // CHR/BAPM events are commonly used. Generate the reverse relationship
- if (preg_match('/^(?:BAPM|CHR)$/', $fact->getTag()) && preg_match('/2 _?ASSO @(' . $person->getXref() . ')@\n3 RELA god(?:parent|mother|father)/', $fact->getGedcom())) {
- switch ($associate->getSex()) {
- case 'M':
- $factrec .= "\n3 RELA godson";
- break;
- case 'F':
- $factrec .= "\n3 RELA goddaughter";
- break;
- default:
- $factrec .= "\n3 RELA godchild";
- break;
- }
- }
}
$facts[] = new Fact($factrec, $associate, 'asso');
}