Skip to content

Commit

Permalink
keep eja.Action integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaldus committed Jun 25, 2024
1 parent 94c7ca4 commit 62c0498
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func Run(eja TypeApi, sessionSave bool) (result TypeApi, err error) {
}
if eja.Action == "link" || eja.Action == "unlink" {
eja.IdList = []int64{}
eja.Action = "search"
eja.ActionType = "List"
}
}
//edit
Expand Down Expand Up @@ -224,7 +224,7 @@ func Run(eja TypeApi, sessionSave bool) (result TypeApi, err error) {
}
}
}
eja.Action = "search"
eja.ActionType = "List"
}

//list
Expand All @@ -235,7 +235,7 @@ func Run(eja TypeApi, sessionSave bool) (result TypeApi, err error) {
}

//search
if eja.Action == "search" || eja.Action == "previous" || eja.Action == "next" || eja.Action == "list" {
if eja.Action == "search" || eja.Action == "previous" || eja.Action == "next" || eja.Action == "list" || eja.ActionType == "List" {
var sqlQuery string
var sqlArgs []interface{}
var sqlOrderFields = db.FieldNameList(eja.ModuleId, "List")
Expand Down
2 changes: 1 addition & 1 deletion sys/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package sys

const Name = "Tibula"
const Version = "17.6.23"
const Version = "17.6.25"

var Options TypeConfig
var Commands TypeCommand

0 comments on commit 62c0498

Please sign in to comment.