Add redirect URL parameter to contact batch

- This allows redirection to the correct contact tab after a batch action
This commit is contained in:
Hypolite Petovan 2021-09-05 14:49:52 -04:00
commit 5262843e63
3 changed files with 3 additions and 1 deletions

View file

@ -29,6 +29,7 @@
{{* we need the form container to make batch actions work *}}
<form name="batch_actions_submit" action="{{$baseurl}}/contact/batch/" method="POST">
<input type="hidden" name="redirect_url" value="{{$cmd}}"/>
{{* we put here a hidden input element. This is needed to transmit the batch actions with javascript*}}
<input type="hidden" class="batch-action no-input fakelist" name="batch_submit" value="{{$l}}">