Update actions_massactions.inc.php

This commit is contained in:
Laurent Destailleur 2018-05-05 14:22:52 +02:00 committed by GitHub
parent aba2ef7ad2
commit 8baa529719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1091,12 +1091,13 @@ if (! $error && ($massaction == 'delete' || ($action == 'delete' && $confirm ==
if (in_array($objecttmp->element, array('societe', 'member'))) $result = $objecttmp->delete($objecttmp->id, $user, 1);
else $result = $objecttmp->delete($user);
if ($result <= 0) {
if ($result <= 0)
{
setEventMessages($objecttmp->error, $objecttmp->errors, 'errors');
$error++;
break;
} else $nbok++;
}
else $nbok++;
}
else
{