Merge pull request #8420 from tchak/fix-empty-pdf
fix(procedure): return most recent demarche for a given path
This commit is contained in:
commit
a0d570cac5
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ module Users
|
||||||
end
|
end
|
||||||
|
|
||||||
def retrieve_procedure_with_closed
|
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
|
end
|
||||||
|
|
||||||
def retrieve_prefilled_dossier
|
def retrieve_prefilled_dossier
|
||||||
|
|
Loading…
Reference in a new issue