Browse Source

Fix #2141 (#2148)

pull/2162/head
Victor Fabre 6 years ago
committed by Edward
parent
commit
9c73fb1d43
  1. 5
      sapl/sessao/views.py
  2. 1
      sapl/templates/norma/normajuridica_form.html

5
sapl/sessao/views.py

@ -460,9 +460,10 @@ def recuperar_materia(request):
ano=ano,
numero=numero)
response = JsonResponse({'ementa': materia.ementa,
'id': materia.id})
'id': materia.id,
'indexacao': materia.indexacao})
except ObjectDoesNotExist:
response = JsonResponse({'ementa': '', 'id': 0})
response = JsonResponse({'ementa': '', 'id': 0, 'indexacao':''})
return response

1
sapl/templates/norma/normajuridica_form.html

@ -17,6 +17,7 @@
ano_materia: ano_materia},
function(data, status) {
$("#id_ementa").val(data.ementa);
$("#id_indexacao").val(data.indexacao);
});
}
}

Loading…
Cancel
Save