📝 Update changelogs

This commit is contained in:
Daniel 2023-10-24 09:42:29 +08:00
parent 02c85734a0
commit 2e064b2453
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ type AttributeView struct {
Views []*View `json:"views"` // 视图
}
func CloneAttributeView(av *AttributeView) (ret *AttributeView) {
func ShallowCloneAttributeView(av *AttributeView) (ret *AttributeView) {
ret = &AttributeView{}
data, err := gulu.JSON.MarshalJSON(av)
if nil != err {

View file

@ -285,7 +285,7 @@ func renderTemplate(p, id string, preview bool) (string, error) {
if nil != parseErr {
logging.LogErrorf("parse attribute view [%s] failed: %s", n.AttributeViewID, parseErr)
} else {
cloned := av.CloneAttributeView(attrView)
cloned := av.ShallowCloneAttributeView(attrView)
if nil != cloned {
n.AttributeViewID = cloned.ID
if !preview {