summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-06-25 11:54:57 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-06-25 11:54:57 +0100
commitbee967fa140984c1b251d20ee7416da5da981988 (patch)
treee4fb11ece3d248fad8255fe37f868a1a92111fc3
parent7d70e4a7551f406d455dd5e56ab783c194bb5a1b (diff)
downloadwebtrees-bee967fa140984c1b251d20ee7416da5da981988.tar.gz
webtrees-bee967fa140984c1b251d20ee7416da5da981988.tar.bz2
webtrees-bee967fa140984c1b251d20ee7416da5da981988.zip
Fix: 'goto new individual' button missing
-rw-r--r--resources/views/edit/new-individual.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/edit/new-individual.phtml b/resources/views/edit/new-individual.phtml
index 1b93acb216..4a5316236f 100644
--- a/resources/views/edit/new-individual.phtml
+++ b/resources/views/edit/new-individual.phtml
@@ -320,7 +320,7 @@ $bdm = ''; // used to copy '1 SOUR' to '2 SOUR' for BIRT DEAT MARR
<?= /* I18N: A button label. */
I18N::translate('save') ?>
</button>
- <?php if (preg_match('/^add-(child|spouse|parent|unlinked-individual)/', $next_action)) : ?>
+ <?php if ($next_action !== EditFactAction::class) : ?>
<button class="btn btn-primary" type="submit" name="goto" value="new">
<?= view('icons/save') ?>
<?= /* I18N: A button label. */