rename CPASortOrder method

This commit is contained in:
Julien Tant
2025-03-14 11:58:56 -07:00
parent d3bc303fa3
commit ed1b8f66fb
2 changed files with 2 additions and 2 deletions
@@ -72,7 +72,7 @@ func (a *App) ListCPAFields() ([]*model.PropertyField, *model.AppError) {
}
sort.Slice(fields, func(i, j int) bool {
return model.CustomProfileAttributesPropertySortOrder(fields[i]) < model.CustomProfileAttributesPropertySortOrder(fields[j])
return model.CPASortOrder(fields[i]) < model.CPASortOrder(fields[j])
})
return fields, nil
@@ -14,7 +14,7 @@ const CustomProfileAttributesPropertyGroupName = "custom_profile_attributes"
const CustomProfileAttributesPropertyAttrsSortOrder = "sort_order"
func CustomProfileAttributesPropertySortOrder(p *PropertyField) int {
func CPASortOrder(p *PropertyField) int {
value, ok := p.Attrs[CustomProfileAttributesPropertyAttrsSortOrder]
if !ok {
return 0