Skip to content

Commit e999471

Browse files
committed
Use id_for_label and html_name in place of field name
Signed-off-by: tdruez <[email protected]>
1 parent b70fb53 commit e999471

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

reporting/templates/reporting/includes/report_list_table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div class="row">
3939
<div class="col-12">
4040
<form>
41-
<input id="#id_{{ filter.form.q.name }}" name="{{ filter.form.q.name }}" type="search" class="form-control form-control-prepended search" value="{{ filter.form.q.value|default_if_none:"" }}" placeholder="Search">
41+
<input id="{{ filter.form.q.id_for_label }}" name="{{ filter.form.q.html_name }}" type="search" class="form-control form-control-prepended search" value="{{ filter.form.q.value|default_if_none:"" }}" placeholder="Search">
4242
</form>
4343
</div>
4444
</div>

workflow/templates/workflow/includes/request_list_table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<div class="row">
3131
<div class="col-12">
3232
<form>
33-
<input id="#id_{{ filter.form.q.name }}" name="{{ filter.form.q.name }}" type="search" class="form-control form-control-prepended search" value="{{ filter.form.q.value|default_if_none:"" }}" placeholder="Search">
33+
<input id="{{ filter.form.q.id_for_label }}" name="{{ filter.form.q.html_name }}" type="search" class="form-control form-control-prepended search" value="{{ filter.form.q.value|default_if_none:"" }}" placeholder="Search">
3434
</form>
3535
</div>
3636
</div>

0 commit comments

Comments
 (0)