🎨 Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888

This commit is contained in:
Daniel 2023-12-24 22:36:48 +08:00
parent 318156f25d
commit 8e4ce81648
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -947,6 +947,13 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
BackKeyID: operation.KeyID,
}
destAdded = true
if operation.IsTwoWay {
name := strings.TrimSpace(operation.Name)
if "" == name {
name = srcAv.Name
}
backRelKey.Name = name
}
}
if !destAdded {