Fixed trigger edit regression and bumped to v39
This commit is contained in:
parent
6909b223a7
commit
d1599fe2b9
@ -242,11 +242,11 @@ func DatapointRetrieve(id int, name string) (dp Datapoint, err error) { // {{{
|
||||
var query string
|
||||
var param any
|
||||
if id > 0 {
|
||||
query = `SELECT *, true AS found FROM datapoint WHERE id = $1`
|
||||
query = `SELECT id, "group", name, "datatype", comment, last_value, nodata_problem_seconds, nodata_is_problem, true AS found FROM public.datapoint WHERE id = $1`
|
||||
param = id
|
||||
dp.ID = id
|
||||
} else {
|
||||
query = `SELECT *, true AS found FROM datapoint WHERE name = $1`
|
||||
query = `SELECT id, "group", name, "datatype", comment, last_value, nodata_problem_seconds, nodata_is_problem, true AS found FROM public.datapoint WHERE name = $1`
|
||||
param = name
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user