fix: massaction delete on actioncomm list do not call delete with good paramters

This commit is contained in:
Florian HENRY 2022-06-22 15:13:13 +02:00
parent 8b06d68cc0
commit 98ee53c4b1

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);
}