Skip to content

Commit

Permalink
Fix tri-Boolean check in PageNaming Module (#1931)
Browse files Browse the repository at this point in the history
If language_root is set to `false`, non-language-root pages will not be
recognised as such, leading to odd behaviours.
  • Loading branch information
mamhoff authored Sep 7, 2020
1 parent cc75d7c commit 339ac4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/alchemy/page/page_naming.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def visible_ancestors
base.push(parent) if parent.visible?
end
else
ancestors.visible.contentpages.where(language_root: nil).to_a
ancestors.visible.contentpages.where(language_root: [nil, false]).to_a
end
end

Expand Down

0 comments on commit 339ac4f

Please sign in to comment.