Address: remove forceRedirect option: backUrl option not null is considerated as forceRedirect true

This commit is contained in:
2021-09-22 13:18:46 +02:00
parent dbb9e6a663
commit dfc6ed9bf3
10 changed files with 14 additions and 28 deletions

View File

@@ -29,9 +29,11 @@
{# include vue_address component #}
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'person', id: person.id },
backUrl: path('chill_person_address_list', { 'person_id': person.id }),
openPanesInModal: false,
} %}
{#
backUrl: path('chill_person_address_list', { 'person_id': person.id }),
#}
{% endblock %}

View File

@@ -29,10 +29,10 @@
{# include vue_address component #}
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'person', id: person.id },
backUrl: path('chill_person_address_list', { 'person_id': person.id }),
stickyActions: true,
} %}
{#
backUrl: path('chill_person_address_list', { 'person_id': person.id }),
openPanesInModal: false,
useValidFrom: true,
#}

View File

@@ -9,12 +9,10 @@
{# include vue_address component #}
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'household', id: household.id },
stickyActions: true
} %}
{#
backUrl: path('chill_person_household_addresses', { 'household_id': household.id }),
stickyActions: true,
openPanesInModal: false,
#}
} %}
</div>
{% endblock %}

View File

@@ -10,12 +10,9 @@
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'household', id: household.id },
backUrl: path('chill_person_household_addresses', { 'household_id': household.id }),
forceRedirect: true,
openPanesInModal: false,
stickyActions: true,
} %}
{#
openPanesInModal: false,
#}
</div>
{% endblock %}

View File

@@ -18,14 +18,13 @@
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'household', id: household.id },
backUrl: path('chill_person_household_addresses', { 'household_id': household.id }),
forceRedirect: true,
mode: 'new',
useValidFrom: true,
buttonSize: 'btn-lg',
buttonText: 'Move household',
modalTitle: 'Move household',
} %}
{#
useValidFrom: true,
#}
</li>
@@ -68,8 +67,6 @@
}) }}
<ul class="record_actions">
<li>
{# include vue_address component #}
<a href="{{ path('chill_person_household_address_edit', { 'household_id': household.id, 'address_id' : address.id } ) }}"
class="btn btn-edit"></a>

View File

@@ -32,7 +32,6 @@
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
targetEntity: { name: 'household', id: household.id },
backUrl: path('chill_person_household_summary', { 'household_id': household.id }),
forceRedirect: true,
hideAddress: true,
mode: 'new',
buttonSize: 'btn-sm',