An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Database kanban view grouping modification issues https://github.com/siyuan-note/siyuan/issues/16511
Daniel3a1376d49ef1
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex d8df81f0e1..ededaefd5d 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -241,6 +241,8 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, groupif !av.MSelectExistOption(newValue.MSelect, groupView.GetGroupValue()) {if 1 > len(newValue.MSelect) || av.KeyTypeMSelect == groupKey.Type {newValue.MSelect = append(newValue.MSelect, &av.ValueSelect{Content: opt.Name, Color: opt.Color})+ } else {+ newValue.MSelect = []*av.ValueSelect{{Content: opt.Name, Color: opt.Color}}}} else {var vals []*av.ValueSelect@@ -3987,11 +3989,18 @@ func sortAttributeViewRow(operation *Operation) (err error) {if targetGroupView := view.GetGroupByID(operation.TargetGroupID); nil != targetGroupView && !gulu.Str.Contains(itemID, targetGroupView.GroupItemIDs) {fillDefaultValue(attrView, view, targetGroupView, operation.PreviousID, itemID, false)- // 移除旧分组的值if val := attrView.GetValue(groupKey.ID, itemID); nil != val {if av.MSelectExistOption(val.MSelect, groupView.GetGroupValue()) {+ // 移除旧分组的值val.MSelect = av.MSelectRemoveOption(val.MSelect, groupView.GetGroupValue())}++ now := time.Now().UnixMilli()+ val.SetUpdatedAt(now)+ if blockVal := attrView.GetBlockValue(itemID); nil != blockVal {+ blockVal.Block.Updated = now+ blockVal.SetUpdatedAt(now)+ }}for i, r := range targetGroupView.GroupItemIDs {