From ad3c679d284cb7c8c0b5fbd2223c50279d7f3bf8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 12 Dec 2018 12:16:57 +0100 Subject: [PATCH] Fix status in cron task list --- htdocs/cron/list.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php index 2ddfbee5e8c..c89cfe1895d 100644 --- a/htdocs/cron/list.php +++ b/htdocs/cron/list.php @@ -230,6 +230,7 @@ $sql.= " t.params,"; $sql.= " t.md5params,"; $sql.= " t.module_name,"; $sql.= " t.priority,"; +$sql.= " t.processing,"; $sql.= " t.datelastrun,"; $sql.= " t.datenextrun,"; $sql.= " t.dateend,"; @@ -418,10 +419,9 @@ print "\n"; if ($num > 0) { // Loop on each job - $style='pair'; $now = dol_now(); $i=0; - $totalarray=array(); + while ($i < min($num,$limit)) { $obj = $db->fetch_object($result); @@ -434,6 +434,7 @@ if ($num > 0) $object->label = $obj->label; $object->status = $obj->status; $object->priority = $obj->priority; + $object->processing = $obj->processing; print '';