mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX#30491 token not set to launch cron task manually (#30492)
This commit is contained in:
parent
84dff519b6
commit
3fda1ce4c0
|
|
@ -731,7 +731,7 @@ if ($num > 0) {
|
|||
}
|
||||
if ($user->hasRight('cron', 'execute')) {
|
||||
if (!empty($obj->status)) {
|
||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$obj->rowid.'&action=execute';
|
||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$obj->rowid.'&action=execute&token='.newToken();
|
||||
print(!getDolGlobalString('CRON_KEY') ? '' : '&securitykey=' . getDolGlobalString('CRON_KEY'));
|
||||
print($sortfield ? '&sortfield='.$sortfield : '');
|
||||
print($sortorder ? '&sortorder='.$sortorder : '');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user