Insert correct link for protocol parser import in email notification [SCI-9273]

This commit is contained in:
Andrej 2023-09-18 15:30:11 +02:00
parent 1068f9b979
commit 5e4f156ae5

View file

@ -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] %>