Browse Source

Closes #1009

pull/1062/head
Edward Ribeiro 8 years ago
parent
commit
382d6bd376
  1. 10
      sapl/relatorios/views.py

10
sapl/relatorios/views.py

@ -520,10 +520,18 @@ def get_sessao_plenaria(sessao, casa):
lst_expedientes = [] lst_expedientes = []
expedientes = ExpedienteSessao.objects.filter( expedientes = ExpedienteSessao.objects.filter(
sessao_plenaria=sessao).order_by('tipo__nome') sessao_plenaria=sessao).order_by('tipo__nome')
for e in expedientes: for e in expedientes:
dic_expedientes = {} dic_expedientes = {}
dic_expedientes["nom_expediente"] = e.tipo.nome dic_expedientes["nom_expediente"] = e.tipo.nome
dic_expedientes["txt_expediente"] = e.conteudo conteudo = e.conteudo
# escape special character '&'
# https://github.com/interlegis/sapl/issues/1009
conteudo = conteudo.replace('&', '&')
dic_expedientes["txt_expediente"] = conteudo
if dic_expedientes: if dic_expedientes:
lst_expedientes.append(dic_expedientes) lst_expedientes.append(dic_expedientes)

Loading…
Cancel
Save