Skip to content

Commit

Permalink
[#10950] Add link in email so use can recreate a dossier
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagn committed Jan 9, 2025
1 parent b246244 commit c05286f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/dossier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ def linked_dossiers_for(instructeur_or_expert)
end

def hash_for_deletion_mail
{ id: self.id, procedure_libelle: self.procedure.libelle }
{ id: self.id, procedure_libelle: self.procedure.libelle, procedure_path: self.procedure.path }

Check warning on line 936 in app/models/dossier.rb

View check run for this annotation

Codecov / codecov/patch

app/models/dossier.rb#L936

Added line #L936 was not covered by tests
end

def geo_data?
Expand Down
3 changes: 1 addition & 2 deletions app/views/dossier_mailer/notify_brouillon_deletion.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
= t('.header', count: @dossier_hashes.size)
%ul
- @dossier_hashes.each do |d|
%li n° #{d[:id]} (#{d[:procedure_libelle]})

%li n° #{d[:id]} (#{link_to d[:procedure_libelle], commencer_url(d[:procedure_path])})
= render partial: "layouts/mailers/signature"

0 comments on commit c05286f

Please sign in to comment.