diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-13 08:35:32 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-13 08:35:32 +0000 |
| commit | df744eafc50cc61b73c8db15a77bd65ddb93cb85 (patch) | |
| tree | 5cb1c8cea9e1f1f8432c6b534a6f793990361c7e /library/WT/Controller | |
| parent | c44d2815d897e375165a68ef7e8c76675cdf5ad2 (diff) | |
| download | webtrees-df744eafc50cc61b73c8db15a77bd65ddb93cb85.tar.gz webtrees-df744eafc50cc61b73c8db15a77bd65ddb93cb85.tar.bz2 webtrees-df744eafc50cc61b73c8db15a77bd65ddb93cb85.zip | |
Refactor - improve semantics of CRUD operations on facts
Diffstat (limited to 'library/WT/Controller')
| -rw-r--r-- | library/WT/Controller/GedcomRecord.php | 2 |
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; } |
