Skip to content

Commit

Permalink
Permite importar caso sin actos. Closes #757
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Jan 24, 2025
1 parent e267cb5 commit 59d0c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sivel2_gen/concerns/models/caso.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def importa(datosent, datossal, formato_sexo,
actos = [datosent['acto']]
end
actos.each do |acto|
if !acto['id_victima_individual'].nil?
if acto && !acto['id_victima_individual'].nil?
actos_individuales.append(acto)
end
if acto && !acto['id_grupo_victima'].nil?
Expand Down

0 comments on commit 59d0c13

Please sign in to comment.