From 8ce76460ed7f5db19fefd1811b24fece14e96398 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 26 Dec 2018 23:35:10 +0100 Subject: [PATCH] FIX: dates should also store recurring (#6814) --- plugins/discourse-local-dates/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discourse-local-dates/plugin.rb b/plugins/discourse-local-dates/plugin.rb index 27f95158f5a..02486ec4e68 100644 --- a/plugins/discourse-local-dates/plugin.rb +++ b/plugins/discourse-local-dates/plugin.rb @@ -28,7 +28,7 @@ after_initialize do date = {} cooked_date.attributes.values.each do |attribute| data_name = attribute.name&.gsub('data-', '') - if data_name && ['date', 'time', 'timezone'].include?(data_name) + if data_name && ['date', 'time', 'timezone', 'recurring'].include?(data_name) unless attribute.value == 'undefined' date[data_name] = CGI.escapeHTML(attribute.value || "") end