#915 Initialize group when adding a new client to DB

Other methods expect not NULL clients' group.
master
Javier Sánchez Parra 2022-01-14 11:12:22 +01:00
parent 4e2ef1a13e
commit eaf7ed9da0
1 changed files with 2 additions and 1 deletions

View File

@ -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,