controllers: unload failed avis from dossier
This avoid the subsequent dossier update to fail because some Avis may be invalid.
This commit is contained in:
parent
9096a3885c
commit
95b6fdf86d
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ module CreateAvisConcern
|
|||
end
|
||||
end
|
||||
)
|
||||
dossier.avis.reload # unload non-persisted avis from dossier
|
||||
|
||||
persisted, failed = create_results.partition(&:persisted?)
|
||||
|
||||
|
|
Loading…
Reference in a new issue