Merge pull request #21353 from FHenry/15_fix_badcall_massaction_delete_on_actioncomm

fix: 15 fix bad call massaction delete on actioncomm delete parameters
This commit is contained in:
Laurent Destailleur 2022-06-22 18:25:46 +02:00 committed by GitHub
commit e4797c9184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1324,6 +1324,8 @@ if (!$error && ($massaction == 'delete' || ($action == 'delete' && $confirm == '
if (in_array($objecttmp->element, array('societe', 'member'))) {
$result = $objecttmp->delete($objecttmp->id, $user, 1);
} elseif (in_array($objecttmp->element, array('action'))) {
$result = $objecttmp->delete();
} else {
$result = $objecttmp->delete($user);
}