From ae99530e252d3ec1914a3ebe966fc3e18ec0d00e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 16 Jun 2026 02:07:14 +0200 Subject: [PATCH] create oldcopy before massdelete (#38844) --- htdocs/core/actions_massactions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index 1dcb4774ba7..0f15cd1ab69 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -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); }