diff --git a/sapl/compilacao/views.py b/sapl/compilacao/views.py index 0f165403a..f925b54bc 100644 --- a/sapl/compilacao/views.py +++ b/sapl/compilacao/views.py @@ -3120,6 +3120,8 @@ class DispositivoSearchFragmentFormView(ListView): elif rotulo: AND_TEXTO_ROTULO = "AND d.rotulo ~* '{BUSCA_ROTULO}'".format( BUSCA_ROTULO=rotulo) + else: + AND_TEXTO_ROTULO = '' jtms = '' # JOIN_TYPE_MODEL_SELECTED atms = '' # AND_TYPE_MODEL_SELECTED