From ef2a02197147b3ecc7fc957dfce70833df0bebdd Mon Sep 17 00:00:00 2001 From: Benoit Queyron Date: Mon, 10 Jun 2024 13:06:54 +0200 Subject: [PATCH] fix condition si monavis est nil --- .DS_Store | Bin 0 -> 8196 bytes app/mailers/notification_mailer.rb | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..765f57dc5914c412cd52c3818b1a7cf891808d37 GIT binary patch literal 8196 zcmeHMT~8ZF6un~;yq19)wUKyc@<=d)K??%$+%N?~G?nM5;0Fd`z@LL=g_Q z)e25Ig`e{=QwrwJJy-=kWryt~YvWsW1{-b!1%d)WfuKN8ASm$9PylN-m*|FdUq21! zpg>UIf2jb^4>cTY>&8yBm8kgct$0#WNNws->Y;x1P-UPp8qko|XoRa%N?eAzlfxKO3VZ_mA)Qd$WBlwfDnMn_p|037 zFkk2R`O{;~3p%Bj=*5xip>X73%QhDE4`}Q%h}HSUQs)EOrpNS%4rrhDs6kI~wTJHy z!9Jyq$7a=Rc4T_eg{PQ~sO#cIGaFw(@AFi$F-2gYr&klJVxyL!M+`+09$R>BVdVOv ztRBHvG;(VYt?U{~=wlasWL*=#<*buhvUFN-(buEydLby}@XFwg(b55WmFtN$au`MF zQ;tdwszP64oVIBfW7Wi&qjsjx3aU9Qt~<+%A_uhqMRlCEpbuY-Ss@yFePxZ_I2!fQ zQ_cj51+?i0j7pZ5dk(LJk&Ds(Lpq-IBKp`~mVwStFXM;!tVs--{Lnt#b}Hnd<8Oh! z#&~efnh^nuv+~U2v3j=Wd3YXUp5U1C;*+Dx!7kZYX(4;a&3K8mKP(+1LA#bB*r$23d*ORaD}!pE5BugF?r-gW(i@J}*MC=q;@qwIQdEj6 z(Ra<`?7TUON8@259z5r72U(W1r`K`&X|H?Us(!ScrK7l)b_YV}b-I9j`>dCCvhzkZ zPCG;4HuZz39F<$um5Ymw&(>FKTbrAgtF?=*PjLNUDl^J#5jT+`12fGAp51u$m zd7Zk>D0ug{Xsg4mUU4}u|DKP`a`;mX-pv*@Y^4Ibd-MDMcdIO*f&xK-f29IyZl}4^ zK+~sFs^1IVYu9kRz`=!a6K#cplWfOfWjhXg^@ky@Yk)GRZtO%`+(CKoF9NRrq2%9~ X_DUJn|9)8i<^2;P!&z7VgX{lalf>_= literal 0 HcmV?d00001 diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index 9b0d94493..3e6064389 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -90,9 +90,9 @@ class NotificationMailer < ApplicationMailer end def set_jdma - return unless params[:state] == Dossier.states.fetch(:en_construction) + return unless params[:state] == Dossier.states.fetch(:en_construction) && @dossier.procedure.monavis_embed - @jdma_html = @dossier.procedure.monavis_embed_html_source("email").presence + @jdma_html = @dossier.procedure.monavis_embed_html_source("email") end def set_dossier