summaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-04-27 11:42:51 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-02 12:32:36 +0200
commit9a85c7a31757b4b624c908f4b2268376bd6da55d (patch)
tree1147a1ac184f4162d996cf0907c00d24ae779b19 /sources
parente4907cc26ae3a45129e77ba78eb5ab33aabc11ab (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>
Diffstat (limited to 'sources')
-rw-r--r--sources/ogAdmServer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/ogAdmServer.c b/sources/ogAdmServer.c
index 28009fb..f72b82c 100644
--- a/sources/ogAdmServer.c
+++ b/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))