diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-01-14 11:12:22 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-01-17 11:22:13 +0100 |
commit | eaf7ed9da0aba4353d6aeda351553aa47fa6d2a5 (patch) | |
tree | 33ae40a3090c1d34b99d11eb567ea60804aa0332 /src/rest.c | |
parent | 4e2ef1a13e79ad7c9a9b82d55aad384fbdb91b99 (diff) |
#915 Initialize group when adding a new client to DB
Other methods expect not NULL clients' group.
Diffstat (limited to 'src/rest.c')
-rw-r--r-- | src/rest.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, |