diff --git a/app/components/dossiers/message_component.rb b/app/components/dossiers/message_component.rb index af19bc2f820..40a9c391615 100644 --- a/app/components/dossiers/message_component.rb +++ b/app/components/dossiers/message_component.rb @@ -63,6 +63,6 @@ def commentaire_date end def highlight? - commentaire.created_at.present? && @messagerie_seen_at&.<(commentaire.created_at) + commentaire.persisted? && @messagerie_seen_at&.<(commentaire.created_at) end end diff --git a/app/views/administrateurs/procedures/_informations.html.haml b/app/views/administrateurs/procedures/_informations.html.haml index 39b533d04f2..062fc4d219a 100644 --- a/app/views/administrateurs/procedures/_informations.html.haml +++ b/app/views/administrateurs/procedures/_informations.html.haml @@ -27,7 +27,7 @@ = f.number_field :duree_conservation_dossiers_dans_ds, { class: 'fr-input', placeholder: '6', required: true, max: f.object.max_duree_conservation_dossiers_dans_ds } -- if @procedure.created_at.present? +- if @procedure.persisted? = render Dsfr::InputComponent.new(form: f, attribute: :lien_site_web, input_type: :text_field, opts: {}, required: false) = render Dsfr::CalloutComponent.new(title: "Cadre juridique") do |c|