This commit is contained in:
Daniel 2025-07-08 16:33:37 +08:00
parent 91a4578859
commit 89dc7c62e7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
16 changed files with 40 additions and 29 deletions

View file

@ -1365,6 +1365,11 @@ func genGroup(view *av.View, attrView *av.AttributeView) {
items = append(items, item)
}
groupKey, _ := attrView.GetKey(group.Field)
if nil == groupKey {
return
}
var rangeStart, rangeEnd float64
switch group.Method {
case av.GroupMethodValue:
@ -1487,9 +1492,12 @@ func genGroup(view *av.View, attrView *av.AttributeView) {
for _, item := range groupItems {
v.GroupItemIDs = append(v.GroupItemIDs, item.GetID())
}
if defaultGroupName == name {
name = fmt.Sprintf(Conf.language(264), groupKey.Name)
}
v.Name = name
view.Groups = append(view.Groups, v)
view.GroupDefault = name == defaultGroupName
}
}