fix the email notifications data bug
This commit is contained in:
parent
402d749c24
commit
eb8df80c18
1 changed files with 7 additions and 5 deletions
|
@ -163,11 +163,13 @@ class Instructeur < ApplicationRecord
|
||||||
acc << h
|
acc << h
|
||||||
end
|
end
|
||||||
|
|
||||||
[["en_instruction", h[:nb_en_instruction]], ["accepte", h[:nb_accepted]]].each do |state, count|
|
if h[:nb_en_instruction] > 0 || h[:nb_accepted] > 0
|
||||||
if procedure.declarative_with_state == state && count > 0
|
[["en_instruction", h[:nb_en_instruction]], ["accepte", h[:nb_accepted]]].each do |state, count|
|
||||||
h[:procedure_id] = procedure.id
|
if procedure&.declarative_with_state == state && count > 0
|
||||||
h[:procedure_libelle] = procedure.libelle
|
h[:procedure_id] = procedure.id
|
||||||
acc << h
|
h[:procedure_libelle] = procedure.libelle
|
||||||
|
acc << h
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue