Skip to content

Update default_values.rb to allow unsetting of content_types group_by - #1422

Open
greyskin wants to merge 1 commit into
locomotivecms:masterfrom
greyskin:unset-content_types-group_by-fix
Open

Update default_values.rb to allow unsetting of content_types group_by#1422
greyskin wants to merge 1 commit into
locomotivecms:masterfrom
greyskin:unset-content_types-group_by-fix

Conversation

@greyskin

@greyskin greyskin commented Jul 22, 2025

Copy link
Copy Markdown

Once group_by is set in a content_type definition file and deployed to Engine, there is no way to un-set it and remove the grouping. This updates provides a solution by recognising when group_by is set to nil or '' (empty string).

Fixes #1418

Once `group_by` is set in a `content_type` definition file and deployed to Engine, there is no way to un-set it and remove the grouping. This updates provides a solution by recognising when `group_by` is set to `nil` or `''` (empty string).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to un-set group_by in content_types

1 participant