solve temporarily the issue #127

This commit is contained in:
did 2011-07-19 15:51:29 +02:00
parent 91aa975973
commit 194a01d15f
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ module Locomotive
# redirection page ? # redirection page ?
attributes[:redirect] = true if attributes[:redirect_url].present? 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 = site.pages.where(:fullpath => self.sanitize_fullpath(fullpath)).first || site.pages.build
page.attributes = attributes page.attributes = attributes