From 047d13ce7a0e3b27db29393e612a2e8fa161f1b0 Mon Sep 17 00:00:00 2001 From: pabois <pierreandre.boissinot@noesya.coop> Date: Mon, 11 Apr 2022 19:03:29 +0200 Subject: [PATCH] fix menu issue --- app/models/concerns/with_tree.rb | 2 +- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/with_tree.rb b/app/models/concerns/with_tree.rb index d07be8877..94e88ff0e 100644 --- a/app/models/concerns/with_tree.rb +++ b/app/models/concerns/with_tree.rb @@ -14,7 +14,7 @@ module WithTree end def ancestors - has_parent? ? parent.ancestors.ordered.push(parent) + has_parent? ? parent.ancestors.push(parent) : [] end diff --git a/db/schema.rb b/db/schema.rb index e83f950a6..668730d65 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -319,10 +319,10 @@ ActiveRecord::Schema.define(version: 2022_04_11_133002) do t.uuid "related_category_id" t.string "featured_image_alt" t.text "text" + t.text "description_short" t.string "breadcrumb_title" t.text "header_text" t.integer "kind" - t.text "description_short" t.index ["communication_website_id"], name: "index_communication_website_pages_on_communication_website_id" t.index ["parent_id"], name: "index_communication_website_pages_on_parent_id" t.index ["related_category_id"], name: "index_communication_website_pages_on_related_category_id" -- GitLab