From 0f09586ec08b145509627c6f964a4dc936804ab5 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Wed, 14 Oct 2026 20:29:31 +0200 Subject: [PATCH] fix(18.1-06): keep reorder.flat in the localized list schema - ListSchema.Localize copied only the reorder title and partition, so GET .../schema/list answered a flat reorder without flat: true - closes the deferred item from plan 18.1-04; the README and the lists docs already describe the flag on the list schema --- modules/cabana/list_schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cabana/list_schema.go b/modules/cabana/list_schema.go index e730324..6aac457 100644 --- a/modules/cabana/list_schema.go +++ b/modules/cabana/list_schema.go @@ -615,7 +615,7 @@ func (s *ListSchema) Localize(ctx context.Context, tr *phrasebook.Translator) (* out.DefaultSort = &sort } if s.Reorder != nil { - reorder := ListReorder{Title: translateKey(ctx, tr, s.Reorder.Title)} + reorder := ListReorder{Title: translateKey(ctx, tr, s.Reorder.Title), Flat: s.Reorder.Flat} if p := s.Reorder.Partition; p != nil { reorder.Partition = &ListReorderPartition{Column: p.Column, Label: translateKey(ctx, tr, p.Label)} }