Migrate to PostgreSQL and fix related issues
This commit is contained in:
parent
0b8fbea6c3
commit
a89a9776c3
17 changed files with 176 additions and 174 deletions
|
|
@ -74,7 +74,7 @@ func FieldAdd(c *fiber.Ctx) error {
|
|||
}
|
||||
|
||||
var lists []models.List
|
||||
db.Order("name collate nocase asc").Find(&lists)
|
||||
db.Order("name asc").Find(&lists)
|
||||
|
||||
if c.Method() == "POST" {
|
||||
field.Name = c.FormValue("name")
|
||||
|
|
@ -107,7 +107,8 @@ func FieldAdd(c *fiber.Ctx) error {
|
|||
if err != nil || listID < 1 {
|
||||
errors = append(errors, "Liste incorrecte")
|
||||
} else {
|
||||
field.ListID = uint(listID)
|
||||
listID2 := uint(listID)
|
||||
field.ListID = &listID2
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue