summaryrefslogtreecommitdiff
path: root/lib/update_importer.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-22 16:03:09 +0100
committerhukl <contact@smyck.org>2009-02-22 16:03:09 +0100
commit955524ef5e5165a71c67b66abaad2c9e2797efd6 (patch)
tree1a4573aa9c1e87d8a788f79ac49d8986d0465f77 /lib/update_importer.rb
parentcea7054a33cf589a275e5cb9143d998782cbbdcf (diff)
cloning tags from heads to new drafts. splitted the find_or_create_draft method to make it easier to read.
fixed a bug in the importer which caused tag loss
Diffstat (limited to 'lib/update_importer.rb')
-rw-r--r--lib/update_importer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/update_importer.rb b/lib/update_importer.rb
index 49614b4..0cc07fe 100644
--- a/lib/update_importer.rb
+++ b/lib/update_importer.rb
@@ -114,9 +114,10 @@ class UpdateImporter
114 if (flags = xhtml.elements['flags']) && page 114 if (flags = xhtml.elements['flags']) && page
115 page.tag_list.add("event") if flags.attributes['calendar'] 115 page.tag_list.add("event") if flags.attributes['calendar']
116 page.tag_list.add("pressemitteilung") if flags.attributes['pm'] 116 page.tag_list.add("pressemitteilung") if flags.attributes['pm']
117 page.save!
118 end 117 end
119 118
119 page.save!
120
120 if node.head.nil? && page 121 if node.head.nil? && page
121 node.head = page 122 node.head = page
122 node.save! 123 node.save!