From 07096f8668537a4de0b9bd2939e9d320c10c0a98 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 28 Feb 2018 16:53:26 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20conserta=20bug=20em=20cria=C3=A7?= =?UTF-8?q?=C3=A3o=20de=20proposica=C3=A7=C3=A3o=20sem=20texto=5Foriginal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index 038a24d82..4b06957db 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -1261,11 +1261,10 @@ class ProposicaoForm(forms.ModelForm): numero__max + 1) if numero__max else 1 inst.save() - if cd['receber_recibo'] == 'True': + if cd['receber_recibo'] == 'True' or not inst.texto_original: inst.hash_code = '' else: _hash = gerar_hash_arquivo(inst.texto_original.path, str(inst.pk)) - inst.hash_code = _hash inst.save()