From 5e4f156ae57411d17df5a037cf17a4526657f34e Mon Sep 17 00:00:00 2001 From: Andrej Date: Mon, 18 Sep 2023 15:30:11 +0200 Subject: [PATCH] Insert correct link for protocol parser import in email notification [SCI-9273] --- app/views/users/mailer/notification.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/mailer/notification.html.erb b/app/views/users/mailer/notification.html.erb index 526e57b44..81005dace 100644 --- a/app/views/users/mailer/notification.html.erb +++ b/app/views/users/mailer/notification.html.erb @@ -21,7 +21,7 @@ <% if @notification.system_message? %> <% # We assume the system notification is clean %> <%= @notification.message.html_safe %> - <% elsif @notification.deliver? && @notification.message.match?(/data-id=('|")(\d*)('|")/) %> + <% elsif @notification.deliver? && @notification.message.match?(/data-id=('|")(\d*)('|")/) && @notification.message.match?(/href=('|")\/zip_exports/) %> <%= I18n.t("notifications.deliver.download_link") %> <% # work around the problem with inserting the link of zipExport %> <% zip_id = /data-id=('|")(\d*)('|")/.match(@notification.message)[2] %>