summaryrefslogtreecommitdiff
path: root/resources/views/family-page.phtml
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-06-27 20:37:45 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-06-27 20:42:40 +0100
commit02467d3222d9362e48b39bb9221b32134076ae9c (patch)
treef0e2305c7cfbb42b1aa91d92bb53d4bee83a7fa4 /resources/views/family-page.phtml
parent669e70942469bf818386b44bab0ce4d237caba74 (diff)
downloadwebtrees-02467d3222d9362e48b39bb9221b32134076ae9c.tar.gz
webtrees-02467d3222d9362e48b39bb9221b32134076ae9c.tar.bz2
webtrees-02467d3222d9362e48b39bb9221b32134076ae9c.zip
Better handling for custom record types
Diffstat (limited to 'resources/views/family-page.phtml')
-rw-r--r--resources/views/family-page.phtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/views/family-page.phtml b/resources/views/family-page.phtml
index 79b31d5dfd..37566991c1 100644
--- a/resources/views/family-page.phtml
+++ b/resources/views/family-page.phtml
@@ -1,6 +1,7 @@
<?php
use Fisharebest\Webtrees\Auth;
+use Fisharebest\Webtrees\Family;
use Fisharebest\Webtrees\Functions\FunctionsPrint;
use Fisharebest\Webtrees\Functions\FunctionsPrintFacts;
use Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact;
@@ -65,7 +66,7 @@ use Fisharebest\Webtrees\View;
<?php if (Auth::isEditor($record->tree())) : ?>
<?= view('edit/paste-fact-row', ['record' => $record, 'facts' => $clipboard_facts]) ?>
- <?php FunctionsPrint::printAddNewFact($record, $facts, 'FAM') ?>
+ <?php FunctionsPrint::printAddNewFact($record, $facts, Family::RECORD_TYPE) ?>
<tr>
<th scope="row">
<?= I18N::translate('Note') ?>