mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Support modifying the primary key value of the binding block https://github.com/siyuan-note/siyuan/issues/9892
This commit is contained in:
@@ -1690,6 +1690,11 @@ func replaceAttributeViewBlock(operation *Operation, tx *Transaction) (err error
|
||||
for _, keyValues := range attrView.KeyValues {
|
||||
for _, value := range keyValues.Values {
|
||||
if value.BlockID == operation.PreviousID {
|
||||
if value.BlockID != operation.NextID {
|
||||
// 换绑
|
||||
unbindBlockAv(tx, operation.AvID, value.BlockID)
|
||||
}
|
||||
|
||||
value.BlockID = operation.NextID
|
||||
if nil != value.Block {
|
||||
value.Block.ID = operation.NextID
|
||||
|
||||
Reference in New Issue
Block a user