summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/content_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb
index fd351ed2..935ed7b8 100644
--- a/app/helpers/content_helper.rb
+++ b/app/helpers/content_helper.rb
@@ -124,7 +124,11 @@ module ContentHelper
124 end 124 end
125 125
126 rescue 126 rescue
127 sanitize(content, :attributes => cccms_attributes) 127 Rails.logger.error("aggregate shortcode failed on page #{@page&.id}: #{e.class}: #{e.message}")
128 fallback = content.sub(/\[aggregate[^\]]*\]/, "")
129 fallback = sanitize(fallback, :attributes => cccms_attributes)
130 fallback += content_tag(:p, t("content.aggregate_failed"), :class => "error_messages") if current_user
131 fallback
128 end 132 end
129 end 133 end
130 134