Fix massaction on cron

This commit is contained in:
Laurent Destailleur 2021-06-01 16:57:55 +02:00
parent d18c1ea0c0
commit 49f4de8728

View File

@ -202,7 +202,7 @@ if (empty($reshook)) {
$permissiontodelete = $user->rights->cron->delete;
$uploaddir = $conf->cron->dir_output;
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
if ($permissiontoadd) {
if ($massaction && $permissiontoadd) {
$tmpcron = new Cronjob($db);
foreach ($toselect as $id) {
$result = $tmpcron->fetch($id);