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

This commit is contained in:
Daniel 2023-12-24 12:44:51 +08:00
parent 66584d8a8a
commit 507fe1637f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -839,12 +839,12 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
AvID: operation.ID, AvID: operation.ID,
IsTwoWay: operation.IsTwoWay, IsTwoWay: operation.IsTwoWay,
} }
if operation.IsTwoWay { if operation.IsTwoWay {
srcRel.BackKeyID = operation.BackRelationKeyID srcRel.BackKeyID = operation.BackRelationKeyID
} else { } else {
srcRel.BackKeyID = "" srcRel.BackKeyID = ""
} }
keyValues.Key.Relation = srcRel
break break
} }