This commit is contained in:
Daniel 2025-06-11 15:32:12 +08:00
parent b46100b29c
commit f575036b6e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 5 additions and 3 deletions

View file

@ -68,7 +68,6 @@ func changeAttrViewLayout(operation *Operation) (err error) {
return
}
view.LayoutType = newLayout
switch newLayout {
case av.LayoutTypeTable:
if nil != view.Table {
@ -102,6 +101,7 @@ func changeAttrViewLayout(operation *Operation) (err error) {
}
}
view.LayoutType = newLayout
err = av.SaveAttributeView(attrView)
return
}
@ -1859,6 +1859,7 @@ func (tx *Transaction) doDuplicateAttrViewView(operation *Operation) (ret *TxErr
for _, field := range masterView.Gallery.CardFields {
view.Gallery.CardFields = append(view.Gallery.CardFields, &av.ViewGalleryCardField{
ID: field.ID,
Wrap: field.Wrap,
Hidden: field.Hidden,
Desc: field.Desc,
})