diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-01-18 08:55:07 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-01-18 08:55:07 +0000 |
| commit | 9cda3358cd19b6360510e506ea6bc78aabcc768b (patch) | |
| tree | 15ce81457cb6205a9484a7ce69065ccd59a16f66 | |
| parent | c353b18f55645a19014772f5cdb03fa020fbbba0 (diff) | |
| download | webtrees-9cda3358cd19b6360510e506ea6bc78aabcc768b.tar.gz webtrees-9cda3358cd19b6360510e506ea6bc78aabcc768b.tar.bz2 webtrees-9cda3358cd19b6360510e506ea6bc78aabcc768b.zip | |
Fix: indicate pending status for events of close relatives
| -rw-r--r-- | app/Module/IndividualFactsTabModule.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/Module/IndividualFactsTabModule.php b/app/Module/IndividualFactsTabModule.php index fabf906ef6..8b6688346d 100644 --- a/app/Module/IndividualFactsTabModule.php +++ b/app/Module/IndividualFactsTabModule.php @@ -226,7 +226,17 @@ class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterf $gedcom = preg_replace('/\n2 TYPE .*/', '', $gedcom); $gedcom = preg_replace('/^1 .*/', "1 EVEN CLOSE_RELATIVE\n2 TYPE " . $type, $gedcom); - return new Fact($gedcom, $fact->record(), $fact->id()); + $converted = new Fact($gedcom, $fact->record(), $fact->id()); + + if ($fact->isPendingAddition()) { + $converted->setPendingAddition(); + } + + if ($fact->isPendingDeletion()) { + $converted->setPendingDeletion(); + } + + return $converted; } /** |
