fix message for delete api

This commit is contained in:
Lamrani Abdel 2023-03-01 18:15:15 +01:00
parent 72cb43f65b
commit a5703a9618

View File

@ -1005,7 +1005,7 @@ if ($dirins && $action == 'confirm_removefile' && !empty($module)) {
$check = dolReplaceInFile($file_api, array($allContent => ''));
if ($check) {
dolReplaceInFile($file_api, array($begin => '', $end => ''));
setEventMessages($langs->trans("ApiObjectDeleted"), null);
setEventMessages($langs->trans("ApiObjectDeleted", $langs->transnoentities($objectname)), null);
}
fclose($handle);
}