delete_btn_controller: Keep the value and name of the original clicked button

This fixes an error message when undoing or reverting a log entry
This commit is contained in:
Jan Böhmer 2023-05-15 00:34:06 +02:00
parent 49b6a42791
commit e4285bbc78
2 changed files with 11 additions and 2 deletions

View file

@ -19,8 +19,8 @@
<form method="post" action="{{ path("log_undo") }}"
{{ stimulus_controller('elements/delete_btn') }} {{ stimulus_action('elements/delete_btn', "submit", "submit") }}
data-delete-title="{% trans %}log.undo.confirm_title{% endtrans %}"
data-delete-message="{% trans %}log.undo.confirm_message{% endtrans %}">
data-delete-title="{% trans %}log.undo.confirm_title{% endtrans %}"
data-delete-message="{% trans %}log.undo.confirm_message{% endtrans %}">
<input type="hidden" name="redirect_back" value="{{ app.request.requestUri }}">