diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-06-27 20:37:45 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-06-27 20:42:40 +0100 |
| commit | 02467d3222d9362e48b39bb9221b32134076ae9c (patch) | |
| tree | f0e2305c7cfbb42b1aa91d92bb53d4bee83a7fa4 /resources/views/family-page.phtml | |
| parent | 669e70942469bf818386b44bab0ce4d237caba74 (diff) | |
| download | webtrees-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.phtml | 3 |
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') ?> |
