mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 After dragging database entries across groups, groups in other views need to be updated https://github.com/siyuan-note/siyuan/issues/15755
This commit is contained in:
parent
543ea20686
commit
fe3ee14417
1 changed files with 1 additions and 4 deletions
|
|
@ -3755,10 +3755,7 @@ func sortAttributeViewRow(operation *Operation) (err error) {
|
||||||
targetGroupView.GroupItemIDs = util.InsertElem(targetGroupView.GroupItemIDs, previousIndex, itemID)
|
targetGroupView.GroupItemIDs = util.InsertElem(targetGroupView.GroupItemIDs, previousIndex, itemID)
|
||||||
}
|
}
|
||||||
|
|
||||||
if av.KeyTypeMSelect == groupKey.Type || av.KeyTypeRelation == groupKey.Type {
|
|
||||||
// 跨多选分组时一个项目可能会同时存在于多个分组中,需要重新生成分组
|
|
||||||
regenAttrViewGroups(attrView)
|
regenAttrViewGroups(attrView)
|
||||||
}
|
|
||||||
} else { // 同分组内排序
|
} else { // 同分组内排序
|
||||||
for i, r := range groupView.GroupItemIDs {
|
for i, r := range groupView.GroupItemIDs {
|
||||||
if r == operation.PreviousID {
|
if r == operation.PreviousID {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue