diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-04-27 11:42:51 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-05-19 18:29:46 +0200 |
commit | 4901cd0d2a2b65124078042a5df4084e2a5375a4 (patch) | |
tree | f99d731bfcdefcdd53fcc2761b71858a688a9364 | |
parent | 0ac24a6e626e1fe0b4d5c2e912597dfc24dfa961 (diff) |
#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>
-rw-r--r-- | admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c index 28009fb0..f72b82c5 100644 --- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c +++ b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.c @@ -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)) |