MM-62548: CPA Reordering - drag and drop (#30097)

Этот коммит содержится в:
Caleb Roseland
2025-02-13 17:09:35 -06:00
коммит произвёл GitHub
родитель b2147476cc
Коммит 2182b1eaf9
11 изменённых файлов: 292 добавлений и 110 удалений

Просмотреть файл

@@ -4,3 +4,19 @@
package model
const CustomProfileAttributesPropertyGroupName = "custom_profile_attributes"
const CustomProfileAttributesPropertyAttrsSortOrder = "sort_order"
func CustomProfileAttributesPropertySortOrder(p *PropertyField) int {
value, ok := p.Attrs[CustomProfileAttributesPropertyAttrsSortOrder]
if !ok {
return 0
}
order, ok := value.(float64)
if !ok {
return 0
}
return int(order)
}