app/controllers/spina/admin/pages_controller.rb in spina-1.1.4 vs app/controllers/spina/admin/pages_controller.rb in spina-1.2.0

- old
+ new

@@ -11,10 +11,10 @@ @pages = Page.active.sorted.roots.regular_pages end def new @resource = Resource.find_by(id: params[:resource_id]) - @page = Page.new(resource: @resource, parent: Page.find_by(id: params[:parent_id]) || @resource&.parent_page) + @page = Page.new(resource: @resource, parent: Page.find_by(id: params[:parent_id])) add_index_breadcrumb if current_theme.new_page_templates.any? { |template| template[0] == params[:view_template] } @page.view_template = params[:view_template] end add_breadcrumb I18n.t('spina.pages.new')