#942 Fix task break down

OpenGnsys tasks can contain other tasks. To know if a element of the
task is another task, we need to check if it has the parameter tareaid
(Task ID). The code had a bug and the check was done on an non-existent
parameter

This commit fix this bug changing the non-existent parameter for
tareaid.

Signed-off-by: OpenGnSys Support Team <soporte-og@soleta.eu>
master
Javier Sánchez Parra 2020-04-27 11:42:51 +02:00 committed by OpenGnSys Support Team
parent e4907cc26a
commit 9a85c7a317
1 changed files with 1 additions and 1 deletions

View File

@ -3543,7 +3543,7 @@ static int og_dbi_queue_task(struct og_dbi *dbi, uint32_t task_id)
}
while (dbi_result_next_row(result)) {
task_id_next = dbi_result_get_uint(result, "procedimientoid");
task_id_next = dbi_result_get_uint(result, "tareaid");
if (task_id_next > 0) {
if (og_dbi_queue_task(dbi, task_id_next))