This commit is contained in:
Daniel 2025-08-13 18:15:02 +08:00
parent 3e033079bd
commit 5efe525e3c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -3083,7 +3083,10 @@ func fillDefaultValue(attrView *av.AttributeView, view, groupView *av.View, prev
keyValues.Values = append(keyValues.Values, newValue) keyValues.Values = append(keyValues.Values, newValue)
} else { } else {
newValueRaw := newValue.GetValByType(keyValues.Key.Type) newValueRaw := newValue.GetValByType(keyValues.Key.Type)
existingVal.SetValByType(keyValues.Key.Type, newValueRaw) if av.KeyTypeBlock != existingVal.Type || (av.KeyTypeBlock == existingVal.Type && existingVal.IsDetached) {
// 非主键的值直接覆盖,主键的值只覆盖非绑定块
existingVal.SetValByType(keyValues.Key.Type, newValueRaw)
}
} }
} }
} }