summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-01-14 11:12:22 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-01-17 11:22:13 +0100
commiteaf7ed9da0aba4353d6aeda351553aa47fa6d2a5 (patch)
tree33ae40a3090c1d34b99d11eb567ea60804aa0332 /src
parent4e2ef1a13e79ad7c9a9b82d55aad384fbdb91b99 (diff)
#915 Initialize group when adding a new client to DB
Other methods expect not NULL clients' group.
Diffstat (limited to 'src')
-rw-r--r--src/rest.c3
1 files changed, 2 insertions, 1 deletions
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,