MandatoryAttachment: group missing errors logic together
and show errors only if not draft
This commit is contained in:
parent
6c7ed9d04a
commit
2b969ef575
6 changed files with 103 additions and 102 deletions
|
@ -13,8 +13,6 @@ class PiecesJustificativesService
|
|||
errors += without_virus
|
||||
.map { |tpj, content| save_pj(content, dossier, tpj, user) }
|
||||
.compact()
|
||||
|
||||
errors += missing_pj_error_messages(dossier)
|
||||
end
|
||||
|
||||
def self.upload_one! dossier, user, params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue