This commit is contained in:
Daniel 2025-08-23 11:55:56 +08:00
parent 8aa8ad65f8
commit 005ae241e9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 18 additions and 9 deletions

View file

@ -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()