From eaf7ed9da0aba4353d6aeda351553aa47fa6d2a5 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 14 Jan 2022 11:12:22 +0100 Subject: #915 Initialize group when adding a new client to DB Other methods expect not NULL clients' group. --- src/rest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rest.c b/src/rest.c index 99db577..c0b4480 100644 --- a/src/rest.c +++ b/src/rest.c @@ -1546,6 +1546,7 @@ static int og_cmd_post_client_add(json_t *element, " ip," " mac," " idaula," + " grupoid," " idperfilhard," " idrepositorio," " mascara," @@ -1555,7 +1556,7 @@ static int og_cmd_post_client_add(json_t *element, " oglivedir," " inremotepc," " maintenance" - ") VALUES ('%s', '%s', '%s', '%s', %u, %u," + ") VALUES ('%s', '%s', '%s', '%s', %u, 0, %u," " %u, '%s', '%s', '%s', '%s'," " '%s', %u, %u)", computer.name, computer.serial_number, -- cgit v1.2.3-18-g5258