parameter passed to person creation page

This commit is contained in:
Julie Lenaerts 2022-01-17 14:24:46 +01:00
parent 5423de3bd9
commit 9a3f35703b
2 changed files with 2 additions and 1 deletions

View File

@ -266,6 +266,7 @@ final class PersonController extends AbstractController
[ [
'form' => $form->createView(), 'form' => $form->createView(),
'alternatePersons' => $alternatePersons ?? [], 'alternatePersons' => $alternatePersons ?? [],
'_fragment' => $request->query->get('_fragment')
] ]
); );
} }

View File

@ -26,7 +26,7 @@
<ul class="record_actions"> <ul class="record_actions">
{% if is_granted('CHILL_PERSON_CREATE') %} {% if is_granted('CHILL_PERSON_CREATE') %}
<li> <li>
<a href="{{ path('chill_person_new') }}" class="btn btn-create"> <a href="{{ path('chill_person_new', { "_fragment": pattern }) }}" class="btn btn-create">
{{ 'Add a person'|trans }} {{ 'Add a person'|trans }}
</a> </a>
</li> </li>