summaryrefslogtreecommitdiff
path: root/resources/views/modals/link-media-to-family.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modals/link-media-to-family.phtml')
-rw-r--r--resources/views/modals/link-media-to-family.phtml4
1 files changed, 1 insertions, 3 deletions
diff --git a/resources/views/modals/link-media-to-family.phtml b/resources/views/modals/link-media-to-family.phtml
index cc6a476d93..f887510998 100644
--- a/resources/views/modals/link-media-to-family.phtml
+++ b/resources/views/modals/link-media-to-family.phtml
@@ -1,9 +1,7 @@
<?php use Fisharebest\Webtrees\I18N; ?>
-<form method="post" action="<?= e(route('link-media-to-record')) ?>" id="wt-modal-form">
+<form method="post" action="<?= e(route('link-media-to-record', ['tree' => $tree->name(), 'xref' => $media->xref()])) ?>" id="wt-modal-form">
<?= csrf_field() ?>
- <input type="hidden" name="tree" value="<?= e($tree->name()) ?>">
- <input type="hidden" name="xref" value="<?= e($media->xref()) ?>">
<?= view('modals/header', ['title' => I18N::translate('Link this media object to a family')]) ?>