MandatoryAttachment: group missing errors logic together

and show errors only if not draft
This commit is contained in:
Simon Lehericey 2017-03-30 16:12:01 +02:00
parent 6c7ed9d04a
commit 2b969ef575
6 changed files with 103 additions and 102 deletions

View file

@ -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