Field position management
This commit is contained in:
parent
bc8a7d5fee
commit
3b9ca37baa
6 changed files with 138 additions and 12 deletions
|
|
@ -278,7 +278,7 @@ func ContactsExport(c *fiber.Ctx) error {
|
|||
}
|
||||
|
||||
var fields []models.Field
|
||||
db.Order("name collate nocase asc").Preload(
|
||||
db.Order("position asc").Preload(
|
||||
"List",
|
||||
).Find(
|
||||
&fields, "person_type = ?", "contact",
|
||||
|
|
@ -465,7 +465,7 @@ func ContactShow(c *fiber.Ctx) error {
|
|||
)
|
||||
|
||||
var fields []models.Field
|
||||
db.Order("name collate nocase asc").Preload(
|
||||
db.Order("position asc").Preload(
|
||||
"List",
|
||||
).Find(
|
||||
&fields, "person_type = ?", "contact",
|
||||
|
|
@ -528,7 +528,7 @@ func ContactAdd(c *fiber.Ctx) error {
|
|||
|
||||
var fields []models.Field
|
||||
db.Preload("List").Preload("List.ListItems").Order(
|
||||
"name collate nocase asc",
|
||||
"position asc",
|
||||
).Find(
|
||||
&fields, "person_type = ?", "contact",
|
||||
)
|
||||
|
|
@ -774,7 +774,7 @@ func ContactEdit(c *fiber.Ctx) error {
|
|||
|
||||
var fields []models.Field
|
||||
db.Preload("List").Preload("List.ListItems").Order(
|
||||
"name collate nocase asc",
|
||||
"position asc",
|
||||
).Find(
|
||||
&fields, "person_type = ?", "contact",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue