Merge pull request #8420 from tchak/fix-empty-pdf

fix(procedure): return most recent demarche for a given path
This commit is contained in:
mfo 2023-01-12 10:37:58 +01:00 committed by GitHub
commit a0d570cac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ module Users
end
def retrieve_procedure_with_closed
Procedure.publiees.or(Procedure.brouillons).or(Procedure.closes).find_by(path: params[:path])
Procedure.publiees.or(Procedure.brouillons).or(Procedure.closes).order(published_at: :desc).find_by(path: params[:path])
end
def retrieve_prefilled_dossier