From 3fda1ce4c0a1a06e2920e329a1896ac57113242b Mon Sep 17 00:00:00 2001
From: IC-Ilies <86972374+IC-Ilies@users.noreply.github.com>
Date: Wed, 31 Jul 2024 15:36:07 +0200
Subject: [PATCH] FIX#30491 token not set to launch cron task manually (#30492)
---
htdocs/cron/list.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php
index 215bfb4e40d..8a9f80e677d 100644
--- a/htdocs/cron/list.php
+++ b/htdocs/cron/list.php
@@ -731,7 +731,7 @@ if ($num > 0) {
}
if ($user->hasRight('cron', 'execute')) {
if (!empty($obj->status)) {
- print 'rowid.'&action=execute';
+ print 'rowid.'&action=execute&token='.newToken();
print(!getDolGlobalString('CRON_KEY') ? '' : '&securitykey=' . getDolGlobalString('CRON_KEY'));
print($sortfield ? '&sortfield='.$sortfield : '');
print($sortorder ? '&sortorder='.$sortorder : '');