mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: dates should also store recurring (#6814)
This commit is contained in:
parent
2b006c0429
commit
8ce76460ed
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ after_initialize do
|
||||||
date = {}
|
date = {}
|
||||||
cooked_date.attributes.values.each do |attribute|
|
cooked_date.attributes.values.each do |attribute|
|
||||||
data_name = attribute.name&.gsub('data-', '')
|
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'
|
unless attribute.value == 'undefined'
|
||||||
date[data_name] = CGI.escapeHTML(attribute.value || "")
|
date[data_name] = CGI.escapeHTML(attribute.value || "")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue