mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-24 12:05:24 +08:00
sort_order int temp
This commit is contained in:
@@ -18,12 +18,12 @@ func CPASortOrder(p *PropertyField) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
order, ok := value.(float64)
|
||||
order, ok := value.(int)
|
||||
if !ok {
|
||||
return 0
|
||||
}
|
||||
|
||||
return int(order)
|
||||
return order
|
||||
}
|
||||
|
||||
const (
|
||||
@@ -109,7 +109,7 @@ type CPAField struct {
|
||||
|
||||
type CPAAttrs struct {
|
||||
Visibility string `json:"visibility"`
|
||||
SortOrder string `json:"sort_order"`
|
||||
SortOrder int `json:"sort_order"`
|
||||
Options PropertyOptions[*CustomProfileAttributesSelectOption] `json:"options"`
|
||||
ValueType string `json:"value_type"`
|
||||
LDAP string `json:"ldap"`
|
||||
|
||||
Reference in New Issue
Block a user