This commit is contained in:
Daniel 2025-08-22 00:48:15 +08:00
parent 4f073c85cd
commit 5077ed3b56
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -242,9 +242,9 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, group
newValue.Email.Content = content newValue.Email.Content = content
case av.KeyTypePhone: case av.KeyTypePhone:
newValue.Phone.Content = content newValue.Phone.Content = content
case av.KeyTypeCheckbox:
newValue.Checkbox.Checked = "" != content
} }
} else if av.KeyTypeCheckbox == groupView.GroupVal.Type {
newValue.Checkbox.Checked = groupView.GroupVal.Checkbox.Checked
} }
ret[groupKey.ID] = newValue ret[groupKey.ID] = newValue