From e993f0f20e89652fa286f59b08b35c65465a7327 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 9 Feb 2023 23:32:06 +0000 Subject: [PATCH] Fix index handling for rule search context --- core/templates/partials/results_table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/templates/partials/results_table.html b/core/templates/partials/results_table.html index 1ed9bc4..a466c49 100644 --- a/core/templates/partials/results_table.html +++ b/core/templates/partials/results_table.html @@ -259,7 +259,7 @@ "channel": "{{ row.cells.channel|escapejs }}", "time": "{{ row.cells.time|escapejs }}", "date": "{{ row.cells.date|escapejs }}", - "index": "{{ params.index }}", + "index": "{% if row.cells.index != '—' %}{{row.cells.index}}{% else %}{{ params.index }}{% endif %}", "type": "{{ row.cells.type }}", "mtype": "{{ row.cells.mtype }}", "nick": "{{ row.cells.nick|escapejs }}",