A platform for community discussion. Free, open, simple.
Assign default value for message template matches
Vinoth Kannan652b32484fd8
diff --git a/script/import_scripts/lithium.rb b/script/import_scripts/lithium.rbindex 0d057b8bbc9..4d82412522c 100644--- a/script/import_scripts/lithium.rb+++ b/script/import_scripts/lithium.rb@@ -903,7 +903,7 @@ SQLenddef postprocess_post_raw(raw, user_id)- matches = raw.match(/<messagetemplate.*<\/messagetemplate>/m)+ matches = raw.match(/<messagetemplate.*<\/messagetemplate>/m) || []matches.each do |match|hash = Hash.from_xml(match)template = hash["messagetemplate"]["zone"]["item"]