Update actions_massactions.inc.php

This commit is contained in:
Laurent Destailleur 2021-09-09 14:35:19 +02:00 committed by GitHub
parent 1e8870eb95
commit d9cdddd688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1335,8 +1335,8 @@ if (!$error && ($massaction == 'delete' || ($action == 'delete' && $confirm == '
// Message for elements well deleted
if ($nbok > 1) {
setEventMessages($langs->trans("RecordsDeleted", $nbok), null, 'mesgs');
} elseif (!empty($nbok)) {
setEventMessages($langs->trans("RecordsDeleted", '1'), null, 'mesgs');
} elseif ($nbok == 1) {
setEventMessages($langs->trans("RecordDeleted"), null, 'mesgs');
}
// Message for elements which can't be deleted