summaryrefslogtreecommitdiff
path: root/library/WT/Controller/GedcomRecord.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/WT/Controller/GedcomRecord.php')
-rw-r--r--library/WT/Controller/GedcomRecord.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Controller/GedcomRecord.php b/library/WT/Controller/GedcomRecord.php
index 233c7fbaac..e123819b69 100644
--- a/library/WT/Controller/GedcomRecord.php
+++ b/library/WT/Controller/GedcomRecord.php
@@ -34,7 +34,7 @@ class WT_Controller_GedcomRecord extends WT_Controller_Page {
$broken_links=0;
foreach ($this->record->getFacts('HUSB|WIFE|CHIL|FAMS|FAMC|SOUR|REPO|OBJE') as $fact) { // Not NOTE!
if (!$fact->isOld() && $fact->getTarget() === null) {
- $this->record->updateFact($fact->getFactId(), null, false);
+ $this->record->deleteFact($fact->getFactId(), false);
WT_FlashMessages::addMessage(/* I18N: %s are names of records, such as sources, repositories or individuals */ WT_I18N::translate('The link from ā€œ%1$sā€ to ā€œ%2$sā€ has been deleted.', $this->record->getFullName(), $fact->getValue()));
$broken_links = true;
}