From f5713d7a35568bba8926bf8a59b4ba7986b58583 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Wed, 13 Nov 2019 16:30:45 -0300 Subject: [PATCH] HOT-FIX: corrige busca de dispositivos na comp --- sapl/compilacao/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/compilacao/views.py b/sapl/compilacao/views.py index f925b54bc..9f0ed2b46 100644 --- a/sapl/compilacao/views.py +++ b/sapl/compilacao/views.py @@ -3116,11 +3116,11 @@ class DispositivoSearchFragmentFormView(ListView): BUSCA_ROTULO=rotulo ) elif str_texto: - AND_TEXTO_ROTULO = ' AND '.join(texto) + AND_TEXTO_ROTULO = ' AND %s' % ' AND '.join(texto) elif rotulo: AND_TEXTO_ROTULO = "AND d.rotulo ~* '{BUSCA_ROTULO}'".format( BUSCA_ROTULO=rotulo) - else: + else: AND_TEXTO_ROTULO = '' jtms = '' # JOIN_TYPE_MODEL_SELECTED