From 194a01d15faac166fb41aee4574156e04b234b73 Mon Sep 17 00:00:00 2001 From: did Date: Tue, 19 Jul 2011 15:51:29 +0200 Subject: [PATCH] solve temporarily the issue #127 --- lib/locomotive/import/pages.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/locomotive/import/pages.rb b/lib/locomotive/import/pages.rb index 528adb2f..89ad4622 100644 --- a/lib/locomotive/import/pages.rb +++ b/lib/locomotive/import/pages.rb @@ -74,6 +74,9 @@ module Locomotive # redirection page ? attributes[:redirect] = true if attributes[:redirect_url].present? + # Don't want the editable elements to be imported: they will be regenerated + attributes.delete(:editable_elements) + page = site.pages.where(:fullpath => self.sanitize_fullpath(fullpath)).first || site.pages.build page.attributes = attributes