From 171551b6c50cf4fd7461ad8c0f3a860afd653830 Mon Sep 17 00:00:00 2001 From: Edward Oliveira Date: Sat, 11 Jul 2026 00:28:43 -0300 Subject: [PATCH] Fix docadm search returning no results after rate-limiter guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit show_results_filter_set was tightened to require non-empty, non-ignored params (guard against bots triggering full-table scans via ?pesquisar=). DocumentoAdministrativoFilterSet used Submit('pesquisar', ...) which landed in _IGNORED_PARAMS, and OrderingFilter auto-prepends an empty '---------' choice so o= comes back empty too — leaving no meaningful param and show_results=False after clicking Pesquisar with empty fields. Rename the submit button to 'salvar', matching the form_actions() convention used by materia and norma search forms. Co-Authored-By: Claude Sonnet 4.6 --- sapl/protocoloadm/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/protocoloadm/forms.py b/sapl/protocoloadm/forms.py index 58cd07568..eb00d8a4f 100644 --- a/sapl/protocoloadm/forms.py +++ b/sapl/protocoloadm/forms.py @@ -223,7 +223,7 @@ class DocumentoAdministrativoFilterSet(django_filters.FilterSet): ''') ], - Submit('pesquisar', _('Pesquisar'), css_class='float-right', + Submit('salvar', _('Pesquisar'), css_class='float-right', onclick='return true;'), css_class='form-group row justify-content-between', )