📝 Update changelogs
This commit is contained in:
parent
02c85734a0
commit
2e064b2453
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue