mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve Add to Database https://github.com/siyuan-note/siyuan/issues/10659
This commit is contained in:
parent
8aa8ad65f8
commit
005ae241e9
4 changed files with 18 additions and 9 deletions
|
|
@ -345,7 +345,13 @@ func addAttributeViewBlocks(c *gin.Context) {
|
|||
src := v.(map[string]interface{})
|
||||
srcs = append(srcs, src)
|
||||
}
|
||||
err := model.AddAttributeViewBlock(nil, srcs, avID, blockID, groupID, previousID)
|
||||
|
||||
var ignoreDefaultFill bool
|
||||
if nil != arg["ignoreDefaultFill"] {
|
||||
ignoreDefaultFill = arg["ignoreDefaultFill"].(bool)
|
||||
}
|
||||
|
||||
err := model.AddAttributeViewBlock(nil, srcs, avID, blockID, groupID, previousID, ignoreDefaultFill)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue