mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888
This commit is contained in:
parent
2953870db5
commit
356b6748c9
1 changed files with 14 additions and 12 deletions
|
|
@ -852,6 +852,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
|
|||
}
|
||||
|
||||
if !destAdded {
|
||||
if operation.IsTwoWay {
|
||||
destAv.KeyValues = append(destAv.KeyValues, &av.KeyValues{
|
||||
Key: &av.Key{
|
||||
ID: operation.BackRelationKeyID,
|
||||
|
|
@ -868,6 +869,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
err = av.SaveAttributeView(srcAv)
|
||||
if nil != err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue