From a2e6ea5fc731298a326216b980a4a032e0e19ac1 Mon Sep 17 00:00:00 2001 From: Gustavo Date: Thu, 28 Apr 2022 11:58:39 -0300 Subject: [PATCH] Fixes #3332 --- sapl/norma/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/norma/views.py b/sapl/norma/views.py index 256399256..21dbeccd5 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -475,7 +475,7 @@ def recuperar_numero_norma(request): if orgao: param['orgao'] = Orgao.objects.get(pk=orgao) - norma = NormaJuridica.objects.filter(**param).order_by( + norma = NormaJuridica.objects.filter(tipo=tipo).order_by( 'tipo', 'ano', 'numero').values_list('numero', flat=True) if norma: numeros = sorted([int(re.sub("[^0-9].*", '', n)) for n in norma])