Fixed exception when updating a layout from back-office which contained an editable area
This commit is contained in:
parent
135f6e54ad
commit
62568bbdbb
@ -19,6 +19,9 @@ module Locomotive
|
|||||||
end
|
end
|
||||||
|
|
||||||
def end_tag
|
def end_tag
|
||||||
|
super
|
||||||
|
|
||||||
|
if @context[:page].present?
|
||||||
@context[:page].add_or_update_editable_element({
|
@context[:page].add_or_update_editable_element({
|
||||||
:block => @context[:current_block].try(:name),
|
:block => @context[:current_block].try(:name),
|
||||||
:slug => @slug,
|
:slug => @slug,
|
||||||
@ -28,6 +31,7 @@ module Locomotive
|
|||||||
:from_parent => false
|
:from_parent => false
|
||||||
}, document_type)
|
}, document_type)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def render(context)
|
def render(context)
|
||||||
current_page = context.registers[:page]
|
current_page = context.registers[:page]
|
||||||
|
Loading…
Reference in New Issue
Block a user