create oldcopy before massdelete (#38844)

This commit is contained in:
Frédéric FRANCE 2026-06-16 02:07:14 +02:00 committed by GitHub
parent 28103ac4f8
commit ae99530e25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1217,6 +1217,7 @@ if (!$error && ($massaction == 'delete' || ($action == 'delete' && $confirm == '
// TODO Change signature of delete for Societe
$result = $objecttmp->delete($objecttmp->id, $user, 1);
} else {
$objecttmp->oldcopy = dol_clone($objecttmp);
$result = $objecttmp->delete($user);
}